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