graft / framework-bundle
Graft Framework Bundle for WordPress Plugin Development.
Requires
- composer/composer: ^1.8
- doctrine/annotations: ^1.6
- doctrine/orm: ^2.6
- mindplay/composer-locator: ^2.1
- symfony/config: ^4.2
- symfony/console: ^4.2
- symfony/yaml: ^4.2
- twig/twig: ^2.6
Requires (Dev)
- phpspec/prophecy: ^1.8
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2019-03-14 19:20:48 UTC
README
This bundle give you an Framework to create an WordPress Plugin with clean code.
Installation
composer require graft/framework-bundle
Run the require command in your Plugin and that's all ! you are ready to code !
Components
Plugin Class
With this class which must extends your Plugin, you can access directly to Activate/Deactivate/Uninstall events from your Plugin.
Configuration
Graft-Framework suggest you to create an config file in your Plugin where you can customize it.
AbstractController and Twig
With Graft-Framework you are able to make MVC code in your Plugin. Indeed, Graft-Framework use Twig Template Engine.
SourceFactory
The SourceFactory handle all your Controllers, no need to instantiate they.