dalee / php-config
A set of php configurations for different cool tools such as php-cs-fixer, etc
Installs: 4 266
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
This package is auto-updated.
Last update: 2025-01-17 05:20:10 UTC
README
A set of php configurations for different cool utils such as php-cs-fixer
.
$ composer require --dev dalee/php-config
Usage
php-cs-fixer
To make it work you have to create .php_cs.dist
with Dalee\CodeStyle\Config
:
return Dalee\CodeStyle\Config::create() ->setFinder( PhpCsFixer\Finder::create() ->in(__DIR__ . '/src') );
phpcs
To extend the ruleset create your own ruleset.xml
:
<?xml version="1.0"?> <ruleset name="MyStandard"> <description>Coding standard based on dalee/php-config with some additions.</description> <file>./src</file> <rule ref="./vendor/dalee/php-config/ruleset.xml" /> </ruleset>
Requirements
PHP 5.6
forphp-cs-fixer