An open API service indexing awesome lists of open source software.

https://github.com/wpup/elda

Simple WordPress Plugin Bootstrapper
https://github.com/wpup/elda

Last synced: 9 months ago
JSON representation

Simple WordPress Plugin Bootstrapper

Awesome Lists containing this project

README

          

# elda

[![Build Status](https://travis-ci.org/wpup/elda.svg?branch=master)](https://travis-ci.org/wpup/elda)
[![codecov.io](http://codecov.io/github/wpup/elda/coverage.svg?branch=master)](http://codecov.io/github/wpup/elda?branch=master)
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)

Simple WordPress Plugin Bootstrapper. Elda loades files and register the [wp-autoload](https://github.com/wpup/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

```php
/**
* 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](https://github.com/frozzare)