Skip to content

erdembekci/plugin-system

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin System

CircleCI Libraries.io dependency status for latest release Packagist License Packagist Version

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');

Help and docs

Please report bugs from issues tab

Installing plugin system

The recommended way to install plugin system is through Composer

composer require isaeken/plugin-system

About

Plugin system for your PHP projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%