PHPackages                             yola/yophpcs - 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. yola/yophpcs

ActiveLibrary

yola/yophpcs
============

Yola.com PHP Code Standard

1.0.1(11y ago)0128MITPHP

Since May 12Pushed 11y ago34 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (0)

Yophpcs
=======

[](#yophpcs)

Yophpcs is the PHP Code Sniffer for Yola that defines the PHP Coding Standards

Using the Code Sniffer
----------------------

[](#using-the-code-sniffer)

```
$ vendor/bin/phpcs --extensions=php --standard=/path/to/yophpcs/ /path/to/project

```

Use as the phpcs standard
-------------------------

[](#use-as-the-phpcs-standard)

```
$ phpcs --config-set default_standard /path/to/checkout/yophpcs/Yola
Config value "default_standard" added successfully

```

The phpcs config file is located: `/usr/local/etc/PHP_CodeSniffer/CodeSniffer.conf`

Yola Standard
-------------

[](#yola-standard)

The base standard, it is derived from the [PSR-2 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

### Differences

[](#differences)

#### 2.3 Side Effects

[](#23-side-effects)

Side Effects warnings are ignored for `require*` statements.

#### 3 Namespace and Class Names

[](#3-namespace-and-class-names)

PHP 5.2 does not support the use of namespaces.

#### 4.2 Properties

[](#42-properties)

Property names SHOULD be prefixed to indicate private visibility.

```
