2017 © Pedro Peláez
 

library php-config

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

image

dalee/php-config

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

  • Thursday, March 22, 2018
  • by dalee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 510 % Grown

The README.md

php-config

A set of php configurations for different cool utils such as php-cs-fixer., (*1)

$ 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:, (*2)

return Dalee\CodeStyle\Config::create()
    ->setFinder(
        PhpCsFixer\Finder::create()
            ->in(__DIR__ . '/src')
    );

phpcs

To extend the ruleset create your own ruleset.xml:, (*3)

<?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

The Versions

22/03 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Dalee IA