PHPackages                             navikt/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. navikt/coding-standard

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

navikt/coding-standard
======================

PHP Coding Standard for NAV IT

v2.0.1(4y ago)02.3k[1 PRs](https://github.com/navikt/coding-standard-php/pulls)2MITPHPPHP ^7.4 || ^8.0

Since Jan 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/navikt/coding-standard-php)[ Packagist](https://packagist.org/packages/navikt/coding-standard)[ Docs](https://github.com/navikt/coding-standard-php)[ RSS](/packages/navikt-coding-standard/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (5)Used By (2)

PHP Coding Standard for NAV IT
==============================

[](#php-coding-standard-for-nav-it)

This is the coding standard for the PHP-based projects and tools at NAV IT. The ruleset is enforced using the [PHP Coding Standards Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) tool.

How to setup
------------

[](#how-to-setup)

First, add this package as a development dependency to your project:

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

```

then, create a PHP-CS-Fixer configuration file named `.php-cs-fixer.php` local to your repository that includes the following:

```
