aubreypwd

Aubrey Portwood

wp-plugin-boilerplate becomes wpkickstart and turns 2.0.0

| Permalink

Since I’ve been working @WebDevStudios I have been working on a project to help me build better plugins that I called wp-plugin-boilerplate initially, but is now called wpkickstart and is also updated to do more!

It’s a lot like our internal plugin-generator, in that it gives you a framework to work in, but is a “anti-generator” because it doesn’t generate code for you. I built it because I thought our plugin generator could be better at name-spacing, object-driven development, reuse of code, but also do a lot less (hence the anti-generator part).

wpkickstart is service and component driven where services deliver unique features of your plugin, while components serve to be re-usable bit-and-pieces that can be used over and over easily, and both have high-mobility (meaning code can move around project to project easily). As I used earlier versions of it (when it was called wp-plugin-boilerplate) I continued to refine it so that things got easier and easier to do, and made it as modern as I could without sacrificing ease-of-use, and now it’s ready to be used.

Everything is done via wp cli commands. Once you have it installed and activated (which you can do easily with wp too) all you have to do is run wp kickstart build, and give it a little bit of information about your project, and it builds a starting-point for your plugin/project.

It features an app() function that you can use to talk to different things in your project, uses an easy-to-get structure, and then it’s all up to you what you build!

Want to find out more? I’ve filled the Wiki with lots of information so that using and understanding it is easy.