PHPackages                             owncloud/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. owncloud/coding-standard

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

owncloud/coding-standard
========================

ownCloud Coding Standard

5.3.2(3mo ago)4782.0k↓25.6%1[5 issues](https://github.com/owncloud/coding-standard/issues)AGPL-3.0PHPCI passing

Since May 15Pushed 1mo ago20 watchersCompare

[ Source](https://github.com/owncloud/coding-standard)[ Packagist](https://packagist.org/packages/owncloud/coding-standard)[ Docs](http://www.owncloud.org)[ RSS](/packages/owncloud-coding-standard/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (33)Used By (0)

ownCloud Coding Standard
========================

[](#owncloud-coding-standard)

[![License](https://camo.githubusercontent.com/c77148b2545a6460d987db4f36a4e1c7e4641c3d9f8ab7b25b0afbdfaddb2061/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c2d2d332e302d626c75652e737667)](LICENSE) [![ownCloud OSPO](https://camo.githubusercontent.com/0d8322f08f58bc70b68c60a64b4d2e6c1edf9dffef2f52e671134491453da84f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f53504f2d6f776e436c6f75642d626c7565)](https://kiteworks.com/opensource)

This repository provides the official ownCloud PHP coding standard as a reusable Composer package. It configures [friendsofphp/php-cs-fixer](http://github.com/FriendsOfPHP/PHP-CS-Fixer) with the rule set defined by the ownCloud team and is used across ownCloud PHP repositories to enforce consistent code style. The library follows semantic versioning, with "risky" additions to code checks introduced only in major versions.

Part of Infrastructure / Tooling
--------------------------------

[](#part-of-infrastructure--tooling)

This package is a shared development tool used across the ownCloud ecosystem. It is consumed by [ownCloud Server (Classic)](https://github.com/owncloud/core) and other PHP-based ownCloud repositories to enforce consistent code formatting.

Getting Started
---------------

[](#getting-started)

Follow the steps below to install and configure the coding standard in your project.

### Installation

[](#installation)

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

### Usage

[](#usage)

Create a configuration file `.php-cs-fixer.dist.php` in the root of your project:

```
