Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 801 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 801 Bytes

Ricorocks Coding Standard

This project contains sniffers for coding standards that are expected to be met on Ricorocks projects.

Installation

composer require --dev ricorocks-digital-agency/ricorocks-coding-standard

Usage

To use this package, you'll need to have PHP Code Sniffer installed in you project:

composer require --dev squizlabs/php_codesniffer

Now run the code sniffer, pointing the Code Sniffer command to our installed coding standard:

./vendor/bin/phpcs --standard=./vendor/ricorocks-digital-agency/ricorocks-coding-standard/RicorocksStandard ./src

Note: When working in a Laravel project, you should change ./src for ./app ./config ./database ./routes. It usually makes more sense to alias this command to a composer script.