PHP code example of flexpress / component-plugin
1. Go to this page and download the library: Download flexpress/component-plugin library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
flexpress / component-plugin example snippets
class MyPlugin extends AbstractPlugin
{
public function init($file)
{
parent::init($file);
}
}
$pimple['myPlugin'] = function(){
return new MyPlugin();
};
$plugin = $pimple['myPlugin'];
$plugin->init(__FILE__);