Taikonauten phpcs configuration
npm install @taikonauten/linters-phpcs

This package provides the phpcs configuration used at Taikonauten.
``bash`
brew install composer
`bash`
composer require "squizlabs/php_codesniffer=*" --ignore-platform-reqs
Inside project root
`bash`
npm install --save-dev @taikonauten/linters-phpcs
`bash`
cp node_modules/@taikonauten/linters-phpcs/phpcs.xml phpcs.xml
Add the following script to your package.json (if any)
`json`
{
"scripts": {
"lint": "npm run lint:php",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml",
}
}
After that, make sure your editor or IDE supports the phpcs.xml file.phpcs` extension:
Install a
For Visual Studio Code, install the phpcs plugin.
---
Made with ♡ at Taikonauten