wpbones / wpbones
WordPress framework for Laravel developers
Installs: 1 293
Dependents: 0
Suggesters: 0
Security: 0
Stars: 100
Watchers: 11
Forks: 24
Open Issues: 7
Requires
- php: >=7.4
- dev-master
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.1
- 1.0.0
- 0.12.0
- 0.11.3
- 0.11.2
- 0.11.0
- 0.10.0
- 0.9.51
- 0.9.50
- 0.9.30
- 0.9.23
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.38
- 0.8.37
- 0.8.36
- 0.8.35
- dev-develop
- dev-add-code-of-conduct-1
This package is auto-updated.
Last update: 2023-03-10 08:40:40 UTC
README
WP Bones is a framework for WordPress written with composer. You can use WPKirk 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.
Documentation
You'll find the complete docs here.
Requirement
- We recommend servers running version 7.2 or greater of PHP
Composer
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Nodes
$ sudo apt-get update && sudo apt-get install nodejs && sudo apt-get install npm
$ sudo apt-get install nodejs-legacy
Gulp
$ sudo npm install --global gulp
Boilerplate
You may start from WPKirk repo as a boilerplate to create a WP Bones WordPress plugin.
I love Laravel
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 install
The last command is very important. You can change either the plugin name or 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
.
You will find further detail in the Official WP Bones Documentation