https://github.com/becklyn/php-cs
Config files for PHP code style
https://github.com/becklyn/php-cs
code-style cs php php-cs-fixer phpstan
Last synced: about 1 month ago
JSON representation
Config files for PHP code style
- Host: GitHub
- URL: https://github.com/becklyn/php-cs
- Owner: Becklyn
- License: bsd-3-clause
- Created: 2018-07-26T15:47:43.000Z (almost 7 years ago)
- Default Branch: release
- Last Pushed: 2022-12-12T13:38:54.000Z (over 2 years ago)
- Last Synced: 2025-04-08T09:48:49.035Z (about 2 months ago)
- Topics: code-style, cs, php, php-cs-fixer, phpstan
- Language: PHP
- Homepage:
- Size: 218 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
PHP Code Style Checker
======================Installation
------------Installation should be done via the [composer-bin-plugin](https://github.com/bamarni/composer-bin-plugin).
```bash
composer bin test require --dev becklyn/php-cs
```Now run your tools like this:
Usage
-----### PHP CS Fixer
```bash
./vendor/bin/php-cs-fixer fix --dry-run --diff --config vendor-bin/test/vendor/becklyn/php-cs/.php_cs.dist.php
./vendor/bin/phpstan -c vendor-bin/test/vendor/becklyn/php-cs/phpstan/lib.neon
```### Composer Normalize
Composer normalize needs the [composer `normalize` plugin](https://packagist.org/packages/localheinz/composer-normalize).
Versioning
==========This package doesn't use semantic versioning, but it always releases a major version.
Main Branch Naming
==================Normally, in Becklyn's repositories, we use versioned branches (`1.x`, `2.x`), but here it doesn't make sense
as every update implies a new major version.So the main branch is just called `release`, as that's where all releases are coming from.