owncloud/coding-standard

ownCloud Coding Standard

Installs: 756 924

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 21

Forks: 1

Open Issues: 5

pkg:composer/owncloud/coding-standard

5.3.1 2025-08-13 08:15 UTC

README

This repository provides a configuration for friendsofphp/php-cs-fixer to check that repositories are following the standards defined by the ownCloud team.

Installation

composer require --dev owncloud/coding-standard

Usage

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

<?php

$config = new OC\CodingStandard\Config();

$config
    ->setUsingCache(true)
    ->getFinder()
    ->in(__DIR__);

return $config;

Versioning

This library follows semantic versioning, additions to the code checks that are "risky" will only be done in major versions

License

AGPL-3.0