https://github.com/nirjharlo/wp-plugin-framework
A WordPress plugin framework.
https://github.com/nirjharlo/wp-plugin-framework
ajax metaboxes shortcode widget wordpress wordpress-boilerplate wordpress-development wordpress-framework wordpress-plugin wordpress-plugin-boilerplate wordpress-plugin-development wp-plugin
Last synced: 3 months ago
JSON representation
A WordPress plugin framework.
- Host: GitHub
- URL: https://github.com/nirjharlo/wp-plugin-framework
- Owner: nirjharlo
- License: gpl-2.0
- Created: 2017-03-20T13:29:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T01:40:31.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T08:34:44.235Z (12 months ago)
- Topics: ajax, metaboxes, shortcode, widget, wordpress, wordpress-boilerplate, wordpress-development, wordpress-framework, wordpress-plugin, wordpress-plugin-boilerplate, wordpress-plugin-development, wp-plugin
- Language: PHP
- Homepage:
- Size: 1.56 MB
- Stars: 11
- Watchers: 0
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP Plugin Framework
A lightweight foundation for rapid WordPress plugin development. The framework provides reusable classes for common tasks such as database setup, custom post types, REST API endpoints and more. Build feature rich plugins without rewriting boilerplate every time.
[](https://travis-ci.org/nirjharlo/wp-plugin-framework)
[](https://scrutinizer-ci.com/g/nirjharlo/wp-plugin-framework/)
## Requirements
- PHP 7.1+
- WordPress 5.0+
## Installation
```bash
composer install
```
For production use `composer install --no-dev`.
## Usage
1. Update namespaces in `wp-plugin-framework.php` and `Plugin/PluginLoader.php` to match your plugin name.
2. Instantiate any of the engine classes or extend them to add your own logic.
3. A lightweight service container now powers `PluginLoader`, keeping class instantiation clean and testable.
4. Register plugin features inside `PluginLoader` to keep everything organised.
## Features
- Settings pages, widgets, metaboxes and shortcodes
- Database migration helpers
- Fluent API integration class
- Cron scheduler wrapper
- REST API controller scaffold
- Simple service container for dependency injection
## Contributing
Pull requests are welcome. For major changes please open an issue first to discuss what you would like to change.
## License
GPL-2.0-or-later. See [LICENSE](LICENSE).
See [CHANGELOG](CHANGELOG.md) for release notes.