Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/allin-data/wordpress-micro-core

The Core module of the All.In Data Micro Plugin provides fundamental and reusable functionality for the modern development of Wordpress plugins.
https://github.com/allin-data/wordpress-micro-core

wordpress wordpress-boilerplate wordpress-development wordpress-php-library wordpress-plugin wordpress-plugins

Last synced: about 2 months ago
JSON representation

The Core module of the All.In Data Micro Plugin provides fundamental and reusable functionality for the modern development of Wordpress plugins.

Awesome Lists containing this project

README

        

# All.In Data Micro Core
## A Micro Wordpress Plugin Framework

The Core module of the All.In Data Micro Plugin Framework provides fundamental and
reusable functionality for the modern development of Wordpress plugins.

## Installment
### Requirements

Create a new plugin folder in your wordpress project, e.g. `foobar-wp`.
Use the terminal inside the folder and run:

composer require allindata/wordpress-micro-core

Create the plugin bootstrap file `foobar-wp.php` with the following (minimal) content:

```
getTemplateDirectory(),
$this->getPluginModules(),
$this->getPluginControllers(),
$this->getPluginShortCodes()
);
}

/**
* @return PluginModuleInterface[]
*/
private function getPluginModules(): array
{
return [];
}

/**
* @return PluginControllerInterface[]
*/
private function getPluginControllers(): array
{
return [];
}

/**
* @return PluginShortCodeInterface[]
*/
private function getPluginShortCodes(): array
{
return [];
}
}
```

### Plugin Class (Application Entrypoint)
```