https://github.com/marcinorlowski/php-coding-standard
PHP Code Sniffer based coding standard checker I use in all my projects
https://github.com/marcinorlowski/php-coding-standard
lint php stylelint-config
Last synced: 3 months ago
JSON representation
PHP Code Sniffer based coding standard checker I use in all my projects
- Host: GitHub
- URL: https://github.com/marcinorlowski/php-coding-standard
- Owner: MarcinOrlowski
- Created: 2016-04-14T11:59:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T12:46:30.000Z (about 4 years ago)
- Last Synced: 2025-04-11T04:35:59.448Z (3 months ago)
- Topics: lint, php, stylelint-config
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
Awesome Lists containing this project
README
# PHP Coding Style validator #
PHP Code Sniffer based coding standard checker I use in all my projects, so it may
most likely not fit your own needs, yet feel free to fork and adjust## Installation ##
Use composer to install this package:
composer require --dev marcin-orlowski/coding-standard
## Command line ##
Package installs `check-coding-standard` wrapper script in `vendor/bin` folder.
Use `-h` to see all available options.Alternatively, use standard directly:
```bash
$ vendor/bin/phpcs -s --standard=vendor/marcin-orlowski/coding-standard/coding-standard/MarcinOrlowski/
```## Using standard with PHP Storm / InteliJ ##
* Install `coding-standard`
* Go to `Settings` / `Editor` / `Inspections`
* In `PHP` inspection group select `PHP Code Sniffer validation` and enable it
* Ensure you got `Code Sniffer` properly installed and setup (hit `Validate` to ensure)
* Set `Coding Standard` to `Custom`
* Click `...` next to it and select `/vendor/marcin-orlowski/coding-standard` folder## License ##
* Written and copyrighted ©2016-2021 by Marcin Orlowski
* Coding Standard package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)