PHP_CodeSniffer coding standards ruleset for the CXL projects.
git clone https://github.com/conversionxl/phpcs-ruleset
cd phpcs-ruleset
composer install
composer config repositories.phpcs-ruleset vcs https://github.com/conversionxl/phpcs-ruleset
composer require cxl/phpcs-ruleset:dev-master --dev
Create or modify phpcs.xml
in project root:
<?xml version="1.0"?>
<ruleset>
<file>src</file>
<rule ref="CXL"/>
</ruleset>
$ composer exec -v phpcs -- -s [<file>] ...