open-function-computers-llc/better-wordpress

A suite of classes to make WordPress theme development cleaner


Keywords
theme, wordpress, handlebars
License
MIT

Documentation

ofc-logo

A suite of utilities to aide in the development of WordPress themes and make the experience less painful.

Latest Stable Version Downloads
πŸ“¦ Β View on Packagist
πŸ“ƒ Β Read the Docs

About

The purpose of this package is to enable developers to use the familiar model-view-controller pattern in the creation of WordPress themes. This is accomplished by keeping HTML and PHP code as seperated as possible and adding convenient methods to organize data before it’s sent to the view controllers. Querying for posts, rendering menus, handling taxonomies and all the other essential parts of developing a WordPress theme are now easier than ever with better-wordpess.

Quick Start

Inside of your site's wp-content/themes folder, run the following command to create a new better-wordpress project.

composer create-project open-function-computers-llc/wp-theme <theme-name>

Next, enter your new theme's folder and run npm install to get dependencies.

cd <theme-name>
npm install

And that's it! Read about advanced installations and asset bundling on the docs.

Example Projects

  • Shirt Store – Demonstrates custom post types, taxonomies, handlebars, and more.

Authors

License

Licensed under the MIT license, see LICENSE