https://github.com/kellerkinderde/codestyle
Codestyle configuration for our PHP projects.
https://github.com/kellerkinderde/codestyle
codestyle php
Last synced: 10 months ago
JSON representation
Codestyle configuration for our PHP projects.
- Host: GitHub
- URL: https://github.com/kellerkinderde/codestyle
- Owner: kellerkinderDE
- License: mit
- Created: 2017-12-11T09:33:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T17:26:26.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T23:18:38.774Z (10 months ago)
- Topics: codestyle, php
- Language: PHP
- Size: 936 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage
## Installation
First require the package via composer:
`composer require --dev k10r/codestyle`
## Choose a version
After that, decide which configuration you want to use, currently the following configurations are supported:
- PHP 7.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
- PHP 8.3
## Implementation
- Create a `.php-cs-fixer.dist.php` or add the one provided by the project to the root folder of your project.
- Change the version to one of the listed above
- Finally, add `.php-cs-fixer.cache` to project specific `.gitignore` file
- If you want to apply the changes simply use: `./vendor/bin/php-cs-fixer fix`
- Use the following command to take a look at the changes before applying them: `./vendor/bin/php-cs-fixer fix --dry-run`