Plugin component for Zend Framework 2
Create your custom flexible plugins by zf2plugin
- Create plugin, like as you write a normal controller
- MVC structure plugin
- Each plugin can return an object(such as ViewModel)/rendered view/array/closure or anything else
- Autoload plugins in all routes which you want
- Define autoload plugins by pattern or by exact route-controller-action
- Generate some dynamic html just by one line code
- Create widgetized content
- Create flexible dynamic content with your plugins
- When you need reusable content
- And you know ...
PHP >= 5.3
ZendDeveloperTools (optional)
Just copy Zf2Plugins to your vendor and enable it.
There is "Sample" module as help in source code.
In plugin config file there is 'autoload-plugins' config that you can set each plugin, autoload in some modules or controllers or actions.
See wiki for begin to write a plugin.
mb.rostami.h[at]gmail.com