2017 © Pedro Peláez
 

lib php-cs

Config files for PHP code style

image

becklyn/php-cs

Config files for PHP code style

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Code Style Checker

Installation

Installation should be done via the composer-bin-plugin., (*1)

composer bin test require --dev becklyn/php-cs 

Now run your tools like this:, (*2)

Usage

PHP CS Fixer

./vendor/bin/php-cs-fixer fix --dry-run --diff --config vendor-bin/test/vendor/becklyn/php-cs/.php_cs.dist.php
./vendor/bin/phpstan -c vendor-bin/test/vendor/becklyn/php-cs/phpstan/lib.neon

Composer Normalize

Composer normalize needs the composer normalize plugin., (*3)

Versioning

This package doesn't use semantic versioning, but it always releases a major version., (*4)

Main Branch Naming

Normally, in Becklyn's repositories, we use versioned branches (1.x, 2.x), but here it doesn't make sense as every update implies a new major version., (*5)

So the main branch is just called release, as that's where all releases are coming from., (*6)

The Versions