Setup Composer in Your Plugin
Lab: Let’s Build a WordPress Starter Sandbox Plugin
Video Runtime: 11:13
Let’s setup the local version of Composer. You will create and fill out the composer.json
file as I explain it to you.
Here is the starter composer.json
file for you:
{ | |
"name" : "", | |
"description" : "", | |
"type" : "project", | |
"keywords" : ["wordpress", "wp", "plugin"], | |
"homepage" : "https://knowthecode.io", | |
"license" : "GPL-2.0+", | |
"authors": [ | |
{ | |
"name" : "hellofromTonya", | |
"email" : "hellofromtonya@knowthecode.io" | |
} | |
], | |
"require": { | |
"php" : ">=5.4.0" | |
}, | |
"require-dev": { | |
"mockery/mockery" : "~4.9" | |
}, | |
"autoload" : {}, | |
"extra": { | |
"branch-alias": { | |
"dev-master": "1.0-dev" | |
} | |
}, | |
"config": { | |
"vendor-dir": "assets/vendor" | |
}, | |
"minimum-stability": "dev" | |
} |
Also, you can get this plugin on GitHub by clicking here.
Your functions are bloated. Put them on a diet. Think "skinny" and "as few lines as possible."
Episodes
Total Lab Runtime: 01:01:34
- 1 Lab Introductionfree 04:32
- 2 Plugin File and Folder Structurefree 04:07
- 3 Plugin Header DocBlockfree 06:56
- 4 What is a DocBlock?free 07:24
- 5 Setup Composer in Your Pluginfree 11:13
- 6 Introduction to Kintfree 09:34
- 7 Introduction to Whoopsfree 05:28
- 8 Let's Test It Outfree 12:20