frozzare/elda

Simple WordPress Plugin Bootstrapper

Installs: 7 770

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 1

pkg:composer/frozzare/elda

v1.2.3 2016-12-14 10:10 UTC

This package is auto-updated.

Last update: 2025-09-29 01:31:56 UTC


README

Build Status codecov.io No Maintenance Intended

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.

Install

composer require frozzare/elda

Example

/**
 * 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\\'
] );

License

MIT © Fredrik Forsmo