Plugin system and management package for your projects.
- Execute specific function for plugin or plugins
- Execute function with/without arguments
- Enable, disable, check plugin outside or inside plugin
- Test plugin before load
- Detailed execution info like extension function executed seconds
$pluginSystem = new IsaEken\PluginSystem\PluginSystem;
// set your plugins directory
$pluginSystem->directory = '/your/plugins/directory';
// load all enabled plugins in your plugins directory
$pluginSystem->autoload();
// execute foo function in all enabled plugins
$success = $pluginSystem->execute('foo');
// execute bar function with arguments in all enabled plugins
$success = $pluginSystem->execute('bar', 'baz');
Please report bugs from issues tab
The recommended way to install plugin system is through Composer
composer require isaeken/plugin-system