Download the PHP package novius/additional-php-cs-fixers without Composer
On this page you can find all versions of the php package novius/additional-php-cs-fixers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download novius/additional-php-cs-fixers
More information about novius/additional-php-cs-fixers
Files in novius/additional-php-cs-fixers
Download novius/additional-php-cs-fixers
More information about novius/additional-php-cs-fixers
Files in novius/additional-php-cs-fixers
Vendor novius
Package additional-php-cs-fixers
Short Description Some additional custom fixers for php-cs-fixer.
License
Package additional-php-cs-fixers
Short Description Some additional custom fixers for php-cs-fixer.
License
Please rate this library. Is it a good library?
Informations about the package additional-php-cs-fixers
This library adds some custom fixers for php-cs-fixer (v2).
Installation
Add this package to your composer.json:
Modify your .php_cs
:
-
Include the composer autoload:
-
Register the custom fixers:
- Use the new rules as you wish:
disallow_unaliased_classes
rule:
This prevents any use of some specific namespace, and encourages to replace it with another.
This is mainly useful/designed to force the use of aliased classes in some frameworks like Laravel or FuelPHP.
As example, with the following rules configuration:
'Fuel\Core' => '',
will trigger an error everytime a class such asFuel\Core\Config
is directly called, and will suggest to replace it withConfig
'Illuminate\Support\Facades' => '',
will prevent a call likeIlluminate\Support\Facades\Validator
and replace it withValidator
'Some\Evil\Stuff' => 'OtherStuff',
will replaceSome\Evil\Stuff\Foo::myFunction()
withOtherStuff\Foo::myFunction()
This also works with use
d namespaces.
TODO
Unit tests
All versions of additional-php-cs-fixers with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package novius/additional-php-cs-fixers contains the following files
Loading the files please wait ....