PHPackages                             codeigniter/coding-standard - 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. [Framework](/categories/framework)
4. /
5. codeigniter/coding-standard

ActiveLibrary[Framework](/categories/framework)

codeigniter/coding-standard
===========================

Official Coding Standards for CodeIgniter based on PHP CS Fixer

v1.9.1(3mo ago)721.5M—9.6%1020MITPHPPHP ^8.2CI passing

Since Aug 29Pushed 3mo ago10 watchersCompare

[ Source](https://github.com/CodeIgniter/coding-standard)[ Packagist](https://packagist.org/packages/codeigniter/coding-standard)[ RSS](/packages/codeigniter-coding-standard/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (41)Used By (20)

CodeIgniter Coding Standard
===========================

[](#codeigniter-coding-standard)

[![Unit Tests](https://github.com/CodeIgniter/coding-standard/actions/workflows/test-phpunit.yml/badge.svg)](https://github.com/CodeIgniter/coding-standard/actions/workflows/test-phpunit.yml)[![Coding Standards](https://github.com/CodeIgniter/coding-standard/actions/workflows/test-coding-standards.yml/badge.svg)](https://github.com/CodeIgniter/coding-standard/actions/workflows/test-coding-standards.yml)[![PHPStan Static Analysis](https://github.com/CodeIgniter/coding-standard/actions/workflows/test-phpstan.yml/badge.svg)](https://github.com/CodeIgniter/coding-standard/actions/workflows/test-phpstan.yml)[![PHPStan level](https://camo.githubusercontent.com/8e9b3549f0d6ec7e6099edb2839f0eacef08777ced80ea3160dd7311fff08ace/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6d61782532306c6576656c2d627269676874677265656e)](phpstan.neon.dist)[![Coverage Status](https://camo.githubusercontent.com/8a6a7a3c597f93f600ee8f58681ed8c5118a7c2d8d3fc113db26bc8999392396/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f436f646549676e697465722f636f64696e672d7374616e646172642f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/CodeIgniter/coding-standard?branch=develop)[![Latest Stable Version](https://camo.githubusercontent.com/f88be889546183c2b2784b0a88090729f1380de0131a5b35f0a1e8aaf94e37e1/687474703a2f2f706f7365722e707567782e6f72672f636f646569676e697465722f636f64696e672d7374616e646172642f76)](//packagist.org/packages/codeigniter/coding-standard)[![License](https://camo.githubusercontent.com/d76039bfe6a9e70a973773473da2e18ff9dba213f0d7f1832572707c8895e9c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f646569676e697465722f636f64696e672d7374616e64617264)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/72f4375888bd205d9e44e787291d522c519c0a85f24c318646b4d32e2a699d26/687474703a2f2f706f7365722e707567782e6f72672f636f646569676e697465722f636f64696e672d7374616e646172642f646f776e6c6f616473)](//packagist.org/packages/codeigniter/coding-standard)

This library holds the official coding standards of CodeIgniter based on [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) and powered by [Nexus CS Config](https://github.com/NexusPHP/cs-config).

Installation
------------

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require codeigniter/coding-standard

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev codeigniter/coding-standard

```

Setup
-----

[](#setup)

To start, let us create a `.php-cs-fixer.dist.php` file at the root of your project.

```
