dalee/php-config

A set of php configurations for different cool tools such as php-cs-fixer, etc

Installs: 4 271

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dalee/php-config

dev-master 2018-03-22 15:42 UTC

This package is auto-updated.

Last update: 2025-09-17 06:56:43 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 for php-cs-fixer

Links