Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dxw/php-cs-fixer-config
dxw's standard config for php-cs-fixer
https://github.com/dxw/php-cs-fixer-config
govpress packagist php
Last synced: 10 days ago
JSON representation
dxw's standard config for php-cs-fixer
- Host: GitHub
- URL: https://github.com/dxw/php-cs-fixer-config
- Owner: dxw
- License: mit
- Created: 2020-07-01T14:51:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-13T12:53:57.000Z (over 1 year ago)
- Last Synced: 2024-03-14T23:47:59.135Z (9 months ago)
- Topics: govpress, packagist, php
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 14
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING.md
Awesome Lists containing this project
README
# php-cs-fixer-config
dxw's standard config for [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
## Usage
Run this:
```
composer require --dev dxw/php-cs-fixer-config
```Create `.php-cs-fixer.php` with these contents:
```
exclude('vendor')
->in(__DIR__);return \Dxw\PhpCsFixerConfig\Config::create()
->setFinder($finder);
```## Upgrading from v1.0.0 to v2.0.0
- Rename the `.php_cs` file in your project to `.php-cs-fixer.php`
- Add `.php-cs-fixer.cache` to your project's `.gitignore` file
- Run `vendor/bin/php-cs-fixer fix -v` to confirm that the only remaining deprecation warning is "PhpCsFixer\Config::create is deprecated since 2.17 and will be removed in 3.0, use the constructor instead". If there are other deprecation warnings, address them now.
- Update your project's `composer.json` file to use `dxw/php-cs-fixer-config` version `^2.0`, and run `composer update`