Download the PHP package cartalyst/php-cs-fixer-config without Composer
On this page you can find all versions of the php package cartalyst/php-cs-fixer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cartalyst/php-cs-fixer-config
More information about cartalyst/php-cs-fixer-config
Files in cartalyst/php-cs-fixer-config
Package php-cs-fixer-config
Short Description PHP CS Fixer configuration for Cartalyst projects
License BSD-3-Clause
Informations about the package php-cs-fixer-config
PHP CS Fixer Config
This repository provides a base configuration for friendsofphp/php-cs-fixer
, which we use to verify and enforce a single coding standard for PHP code written on Cartalyst.
Installation
Run the following:
Usage
Now that the package is installed, create a configuration file called .php_cs
or .php_cs.php
at the root of your project with the following contents:
Ignoring files and/or directories
There will be certain situations where you might want to ignore certain files or directories to not be linted.
Luckily, this is quite easy to achieve and all you need to do is to perform some calls on the CS Fixer Finder instance :)
Here's a simple example where we ignore both files and directories:
Enforce coding standards for PHPUnit tests
If you would like to also enable coding standards on your tests, you can call the withPHPUnitRules()
method on the Config
class, like so:
Contributing
Thank you for your interest in PHP CS Fixer Config. Here are some of the many ways to contribute.
- Check out our contributing guide
- Look at our code of conduct
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
PHP CS Fixer Config is licenced under the BSD 3-Clause. Please see the license file for more information.