Download the PHP package moehrenzahn/wp-toolkit without Composer
On this page you can find all versions of the php package moehrenzahn/wp-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moehrenzahn/wp-toolkit
More information about moehrenzahn/wp-toolkit
Files in moehrenzahn/wp-toolkit
Package wp-toolkit
Short Description An object-oriented framework around common WordPress functionality to jumpstart theme and plugin development.
License MIT
Informations about the package wp-toolkit
WordPress Toolkit
Work with common WordPress Plugin and Theme APIs in a modern, object-oriented way.
By Max Melzer
The WordPress Toolkit is a Composer module that offers easy access to common WordPress functionality, inspired by modern PHP frameworks like Symfony.
It's aim is to provide consistent, object-oriented methods for WordPress plugin and theme development.
Installation
To use the toolkit, add it to your theme or plugin via Composer.
Then, you can initialize the Client class in your PHP script. This is the entry point to all functionality of the toolkit.
Requirements
- Composer
- PHP >= 7.1
- WordPress >= 5.0 (older versions may work but are untested)
Features
- convenient API around Wordpress action and filter management
- object manager with simple, automatic dependency injection
- template rendering with Model-View-Controller architecture
- add and manage
- JavaScript files
- CSS files
- image sizes
- shortcodes
- virtual user accounts
- Transients
- Post Types
- Post Terms and Meta
- Post Meta boxes
- Post filters
- comment Meta
- comment Meta boxes
- settings pages
- admin pages
- admin notices
- AJAX actions
- POST actions
Usage example
Add a CSS file to your theme:
Add a shortcode with a custom template:
Create a custom settings page with pre-built input type templates.
Use the built-in View
class to render your templates and get
access to features like lazy-loading images and partials:
Use the object manager to initalize objects with automatic dependency resolution.
Release History
- 1.0.0
- Initial release
Meta
Max Melzer – @_maxmelzer – [email protected]
Distributed under the GNU General Public License. See LICENSE.md
for more information.
https://github.com/moehrenzahn
Contributing
- Fork it (https://github.com/moehrenzahn/wp-toolkit/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request