Simple WordPress Plugin Bootstrapper. Elda loades files and register the wp-autoload. Default Elda looks for code in src
directory in your plugin directory, this can be changed with src_dir
in options array.
composer require frozzare/elda
/**
* Plugin Name: Customer
* Description: Customer description
* Author: Customer
* Author URI: http://example.com
* Version: 1.0.0
* Textdomain: customer
*/
use Frozzare\Elda\Elda;
/**
* Bootstrap Customer plugin with Elda.
*/
Elda::boot( __FILE__, [
'domain' => 'customer',
'files' => [
'lib/papi.php'
],
'namespace' => 'Customer\\'
] );
MIT © Fredrik Forsmo