1. Add the repository to your composer.json using either the JSON format:
"repositories": {
"gerenuk/php-coding-style": {
"type": "vcs",
"url": "https://github.com/Gerenuk-LTD/php-coding-style.git"
}
},Or the CLI command:
composer config repositories.gerenuk/php-coding-style '{"type": "vcs", "url": "https://github.com/Gerenuk-LTD/php-coding-style.git"}' --file composer.json2. Include gerenuk/php-coding-style in your project's dev dependencies:
composer require --dev gerenuk/php-coding-styleRun the Pint command to apply the Gerenuk coding style:
./vendor/bin/pint --config vendor/gerenuk/php-coding-style/pint.jsonYou can also add a script to your composer.json for quicker style application:
composer config scripts.pint 'pint --config vendor/gerenuk/php-coding-style/pint.json' --file composer.jsonApply Gerenuk's coding style using the script:
composer pint