https://github.com/aik099/codingstandard
The PHP_CodeSniffer coding standard I'm using on all of my projects
https://github.com/aik099/codingstandard
coding-standards php php-codesniffer
Last synced: 10 months ago
JSON representation
The PHP_CodeSniffer coding standard I'm using on all of my projects
- Host: GitHub
- URL: https://github.com/aik099/codingstandard
- Owner: aik099
- License: bsd-3-clause
- Created: 2014-04-17T09:35:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-11-07T17:06:47.000Z (over 4 years ago)
- Last Synced: 2025-04-14T00:16:52.786Z (10 months ago)
- Topics: coding-standards, php, php-codesniffer
- Language: PHP
- Size: 460 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# CodingStandard
[](https://github.com/aik099/CodingStandard/actions/workflows/tests.yml)
[](https://scrutinizer-ci.com/g/aik099/CodingStandard/?branch=master)
[](https://codecov.io/gh/aik099/CodingStandard)
[](https://packagist.org/packages/aik099/coding-standard)
[](https://packagist.org/packages/aik099/coding-standard)
The PHP_CodeSniffer coding standard I'm using on all of my projects.
Standard itself and it's test suite complies [PHPCS standard](https://github.com/squizlabs/PHP_CodeSniffer/tree/master/CodeSniffer/Standards/PHPCS).
# Usage
Only PHP_CodeSniffer 3.x and later versions are supported. For PHP_CodeSniffer 1.x and 2.x use "1.0" branch.
1. clone this repository
2. run following command in project directory:
```bash
$> phpcs --standard="/path/to/CodingStandard/CodingStandard" library tests
```
or by make your IDE ([instructions for PhpStorm](http://www.jetbrains.com/phpstorm/webhelp/using-php-code-sniffer-tool.html)) to check them automatically.