Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/apkoponen/wp-plugin-boilerplate

[WIP] WordPress Plugin Boilerplate
https://github.com/apkoponen/wp-plugin-boilerplate

Last synced: about 2 months ago
JSON representation

[WIP] WordPress Plugin Boilerplate

Awesome Lists containing this project

README

        

# WordPress Plugin Boilerplate

[![Build Status](https://travis-ci.org/frozzare/wp-plugin-boilerplate.svg?branch=master)](https://travis-ci.org/frozzare/wp-plugin-boilerplate)

Plugin Boilerplate requires PHP 5.4.

## Coding Style

Follow [PSR-2](http://www.php-fig.org/psr/psr-2/) with the following additional rules:

- Functions that should be used in a WordPress theme should not be camelCase, instead use underscores.
- Use short array syntax.

Follow [PSR-4](http://www.php-fig.org/psr/psr-4/) for autoloading.

You can check if your code passes the styleguide by installing [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) and running the following in your project directory:

```
phpcs --standard=phpcs.xml --extensions=php -n -s .
```