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

https://github.com/zifius/magizendo

ECG + Zend/PSR2 phpcs coding standard
https://github.com/zifius/magizendo

code-style magento magento2 php-codesniffer psr-2

Last synced: 9 days ago
JSON representation

ECG + Zend/PSR2 phpcs coding standard

Awesome Lists containing this project

README

          

# PHPCodeSniffer standards for Magento

## Magento 1 standard combines Ecg and Zend standards into one

## Magento 2 standard combines EcgM2 and PSR2 standards

### Usage

Run ``composer require zifius/magizendo``

For PhpStorm IDE: setup a "Custom" coding standard pointing to the folder where the ruleset.xml resides, check [PhpStorm Documentation](https://confluence.jetbrains.com/display/PhpStorm/PHP+Code+Sniffer+in+PhpStorm#PHPCodeSnifferinPhpStorm-4.2.UsingcustomcodestyleswithPhpStorm) for details

Alternatively [set standards path globally](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options#setting-the-installed-standard-paths)