https://github.com/clivern/phpcs
📦 Personal PHP Coding Standards.
https://github.com/clivern/phpcs
php-cs-fixer phpcs phpcs-standard
Last synced: 12 months ago
JSON representation
📦 Personal PHP Coding Standards.
- Host: GitHub
- URL: https://github.com/clivern/phpcs
- Owner: Clivern
- License: mit
- Created: 2021-06-27T19:40:58.000Z (almost 5 years ago)
- Default Branch: 1.x
- Last Pushed: 2021-10-18T21:15:34.000Z (over 4 years ago)
- Last Synced: 2025-07-02T06:02:44.099Z (12 months ago)
- Topics: php-cs-fixer, phpcs, phpcs-standard
- Language: PHP
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP Coding Standards
## Documentation
### Installation:
To install the package via `composer`, use the following:
```zsh
$ composer require clivern/phpcs --dev
```
Place a file named `.php-cs-fixer.dist.php` that has following content in your project's root directory.
```php
COMMENT;
$finder = Finder::create()
->name('.php_cs.dist')
->in(__DIR__)
->exclude('vendor');
$overrides = [
'declare_strict_types' => true,
];
return (new Config())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules(Rules::PHP72($fileHeaderComment, $overrides));
```
## Versioning
For transparency into our release cycle and in striving to maintain backward compatibility, phpcs is maintained under the [Semantic Versioning guidelines](https://semver.org/) and release process is predictable and business-friendly.
See the [Releases section of our GitHub project](https://github.com/clivern/phpcs/releases) for changelogs for each release version of phpcs. It contains summaries of the most noteworthy changes made in each release.
## Bug tracker
If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/phpcs/issues
## Security Issues
If you discover a security vulnerability within phpcs, please send an email to [hello@clivern.com](mailto:hello@clivern.com)
## Contributing
We are an open source, community-driven project so please feel free to join us. see the [contributing guidelines](CONTRIBUTING.md) for more details.
## License
© 2021, clivern. Released under [MIT License](https://opensource.org/licenses/mit-license.php).
**phpcs** is authored and maintained by [@clivern](http://github.com/clivern).