Package Data | |
---|---|
Maintainer Username: | gfazioli |
Maintainer Contact: | giovambattista.fazioli@gmail.com (Giovambattista Fazioli) |
Package Create Date: | 2015-11-27 |
Package Last Update: | 2024-03-22 |
Home Page: | https://wpbones.vercel.app/ |
Language: | PHP |
License: | GPL-3.0 |
Last Refreshed: | 2024-03-24 03:10:32 |
Package Statistics | |
---|---|
Total Downloads: | 1,759 |
Monthly Downloads: | 85 |
Daily Downloads: | 12 |
Total Stars: | 104 |
Total Watchers: | 11 |
Total Forks: | 24 |
Total Open Issues: | 9 |
WP Bones is a framework for WordPress written with composer. You can use WP Kirk repo as a boilerplate to create a plugin.
As you know, WordPress doesn't support composer. So, I have used a little trick to fix this issue.
You'll find the complete docs here.
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
$ sudo apt-get update && sudo apt-get install nodejs && sudo apt-get install npm
$ sudo apt-get install nodejs-legacy
$ sudo npm install --global gulp
You may start from WP Kirk repo as a boilerplate to create a WP Bones WordPress plugin.
First to all, this framework and the boilerplate plugin are inspired to Laravel framework. Also, you will find a bones
php shell executable like Laravel artisan
.
After cloning the repo, you can:
Display help
$ php bones
Change namespace
$ php bones namespace MyPluginName
The last command is very important. You can change the namespace in anytime. However, I suggest you to make this only the first time, when the plugin is inactive.
After changing of the namespace, you can start to develop you plugin. Your namespace will be MyPluginName
.