outsanity / phpcs
The Outsanity PHPCS rules
v0.4.0
2020-02-03 02:13 UTC
Requires
- ork/phpcs: ^2.0
- squizlabs/php_codesniffer: ^3.5
README
This is based on PSR-12 and my personal preferences. It's also based on AlexHowansky's work on ork-phpcs and other phpcs repos.
Conventions
Code
Source lives in src.
Namespace prefix is \Outsanity\ProjectOrLibrary\, so projects or librarys can
be used side-by-side if the need arises.
Tests
Unit tests live in tests.
Test namespace prefix is \Outsanity\ProjectOrLibrary\Tests\, with the
understanding that they will not be imported between projects.