Download the PHP package greencape/coding-standards without Composer
On this page you can find all versions of the php package greencape/coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download greencape/coding-standards
More information about greencape/coding-standards
Files in greencape/coding-standards
Package coding-standards
Short Description Composer installable Coding Standards Definitions.
License MIT
Homepage https://github.com/GreenCape/coding-standards
Informations about the package coding-standards
GreenCape Coding Standards
This repository includes Coding Standard definitions for PHP CodeSniffer 2.x for use with Composer.
Currently, these Coding Standards are included:
- Joomla! Coding Standard
- WordPress Coding Standard
- PEAR, PSR1, PSR2, Squiz, and Zend Coding Standards are provided by PHP CodeSniffer natively.
Requirements
- PHP 5.3+
- Composer
Installation
Add this package to your requirements.
The PHP CodeSniffer tool is installed automatically in a matching version.
You can verify a successful install with
Running
You can use the installed Joomla standard like:
You can use the installed WordPress standard like:
In both cases, the second (phpcbf
) line will fix some issues automatically.
However, this part is work in progress, and will improve over time.
Contributing
If you want to contribute to this project, you can
- fork this repo, code, and send a Pull Request
- file an issue in the Issue Tracker