Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiwelo/raccoon-plugin
With Raccoon, use a JSON or YAML file to manage WordPress theme features
https://github.com/hiwelo/raccoon-plugin
json wordpress wordpress-admin wordpress-configuration wordpress-development wordpress-plugin yaml
Last synced: about 1 month ago
JSON representation
With Raccoon, use a JSON or YAML file to manage WordPress theme features
- Host: GitHub
- URL: https://github.com/hiwelo/raccoon-plugin
- Owner: hiwelo
- License: gpl-3.0
- Created: 2016-02-09T23:31:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-14T14:26:56.000Z (over 7 years ago)
- Last Synced: 2024-09-27T14:42:03.043Z (about 2 months ago)
- Topics: json, wordpress, wordpress-admin, wordpress-configuration, wordpress-development, wordpress-plugin, yaml
- Language: PHP
- Homepage:
- Size: 1.01 MB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Raccoon WordPress plugin
**[Raccoon Plugin](https://github.com/hiwelo/raccoon-plugin)** is a [_WordPress_](https://wordpress.org/) plugin which allows you to easily manage WordPress theme features with a JSON or YAML configuration file.
[![Build Status](https://travis-ci.org/hiwelo/raccoon-plugin.svg)](https://travis-ci.org/hiwelo/raccoon-plugin)
## Summary
- [Dev requirements](#dev-requirements)
- [Installation](#installation)
- [After installation](#after-installation)
- [Manifest JSON or YAML file](#manifest-json-or-yaml-file)
- [Documentation](https://github.com/hiwelo/raccoon-plugin/wiki)
- [Third-part features](#third-part-features)## Dev requirements
For its development, **[Raccoon Plugin](https://github.com/hiwelo/raccoon-plugin)** requires:
- PHP >= 5.6
- Composer
- WordPress >= 4.4## Installation
To install the **[Raccoon Plugin](https://github.com/hiwelo/raccoon-plugin)** in your
WordPress project, you can :1. Clone the repository in your _WordPress_ plugin directory :
`git clone https://github.com/hiwelo/raccoon-plugin.git`2. If your using _Composer_ and an environment like _[Bedrock](https://roots.io/bedrock)_ : `composer require hiwelo/raccoon-plugin`
If you want to install this plugin directly in your WordPress without Composer, I suggest you to install it in the *Must-Use Plugins* `mu-plugins/` directory.
If you want to install this plugin with _Composer_, note that this package has a specific type (`wordpress-muplugin`) for a direct installation into the `mu-plugins/` directory (like in _[Bedrock](https://roots.io/bedrock)_).
## After installation
If the plugin is in the WordPress `mu-plugins/` directory, you do not need to do something special to activate it.
You just need to create a `manifest.json` file in your theme's root directory to use it.If the plugin is in the WordPress `plugins/` directory, do not forget to activate it in the WordPress admin panel and create the `manifest.json` file in your theme's root directory.
## Manifest JSON or YAML file
Once you created the JSON or YAML file in your theme's root directory, you can use in this file all features described in [this project's wiki](https://github.com/hiwelo/raccoon-plugin/wiki).
## Third-part features
### Raccoon loves Bedrock
_[Bedrock](https://roots.io/bedrock/)_ is a _WordPress_ boilerplate which create a better projet structure mainly with a new `wp-content/` folder renamed `app/`.
_[Bedrock](https://roots.io/bedrock/)_ use Composer and environments variables.By example, **[Raccoon](https://github.com/hiwelo/raccoon/)** can use environments variables from Bedrocks to know the environment status (development, production, staging) and manage which debug informations has to be returned by the theme.
If you don't use _[Bedrock](https://roots.io/bedrock/)_, you can manually set environment status in the `manifest.json` file like this :
```json
{
"environment-status": "development"
}
```