Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jadu/php-style
phpcs configuration for Jadu code
https://github.com/jadu/php-style
Last synced: 5 days ago
JSON representation
phpcs configuration for Jadu code
- Host: GitHub
- URL: https://github.com/jadu/php-style
- Owner: jadu
- Created: 2019-01-07T16:12:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T14:16:30.000Z (over 1 year ago)
- Last Synced: 2024-11-06T11:04:29.544Z (12 days ago)
- Language: PHP
- Size: 23.4 KB
- Stars: 0
- Watchers: 24
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jadu PHP Style
Require the php-style dev dependency:
```
composer require --dev jadu/php-style
```In your project's `.php-cs-fixer.dist.php` config file use the `Config` class as follows:
```
in(__DIR__ . '/src');
$finder->in(__DIR__ . '/tests/unit');$config = new Config();
$config->setFinder($finder);return $config;
```
Now add phpcs to your project's build tasks.
Example CI command:
```
vendor/bin/php-cs-fixer --dry-run -v fix
```