PHPackages                             gtjamesa/php-standards - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. gtjamesa/php-standards

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

gtjamesa/php-standards
======================

James' shared PHP style rules for PHP-CS-Fixer

v2.0.1(4y ago)22.7k9MITPHPPHP ^7.0|^8.0

Since Sep 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gtjamesa/php-standards)[ Packagist](https://packagist.org/packages/gtjamesa/php-standards)[ RSS](/packages/gtjamesa-php-standards/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (9)

PHP Coding Standards
====================

[](#php-coding-standards)

This package defines my [`FriendsOfPHP/PHP-CS-Fixer`](https://github.com/FriendsOfPHP/PHP-CS-Fixer) coding standards to be used across multiple projects. For details regarding the rules used, you may use [php-cs-fixer-configurator](https://mlocati.github.io/php-cs-fixer-configurator/).

Usage
-----

[](#usage)

Install the package by requiring `php-cs-fixer` and `php-standards`:

```
composer require --dev friendsofphp/php-cs-fixer gtjamesa/php-standards
```

Next, create a [`.php-cs-fixer.dist.php`](https://raw.githubusercontent.com/gtjamesa/php-standards/master/.php-cs-fixer.dist.php) file in the root of your project with the following content:

```
