PHPackages                             pattisahusiwa/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. pattisahusiwa/coding-standard

Abandoned → [asispts/ptscs](/?search=asispts%2Fptscs)Phpcodesniffer-standard[PSR &amp; Standards](/categories/psr-standards)

pattisahusiwa/coding-standard
=============================

Another PHP Coding Standard for PHP\_CodeSniffer

v0.4(5y ago)1752[2 issues](https://github.com/pattisahusiwa/coding-standard/issues)MITPHPPHP &gt;=7.0

Since Jul 4Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

> This repository has been archived. Please use [`asispts/ptscs`](https://github.com/asispts/ptscs) instead.

PHP coding standard based on PSR-12
===================================

[](#php-coding-standard-based-on-psr-12)

[![Packagist License](https://camo.githubusercontent.com/68e6642c9f81907f6ef643e21f7d8879098c7b5d830e46531583dbed4c4b9999/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706174746973616875736977612f636f64696e672d7374616e64617264)](https://github.com/pattisahusiwa/coding-standard/blob/master/LICENSE)[![Packagist PHP Version Support](https://camo.githubusercontent.com/9b81add94debf140d5f04c225c51f145764c035d4da8c594b88bd1be49c9ef44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706174746973616875736977612f636f64696e672d7374616e64617264)](https://php.net/)[![Packagist Version](https://camo.githubusercontent.com/67ff4fe4a2c0682dc0235a7b48de19756e4155cab78816ab48546668a57258ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706174746973616875736977612f636f64696e672d7374616e646172643f6c6162656c3d6c6174657374)](https://github.com/pattisahusiwa/coding-standard/releases)

> Another PHP Coding Standard for PHP\_CodeSniffer based on `PSR-12` with some exceptions and additions.

- [PHP coding standard based on PSR-12](#php-coding-standard-based-on-psr-12)
    - [Deprecated](#deprecated)
    - [Installation](#installation)
    - [Usage](#usage)
    - [Coding style](#coding-style)
    - [License](#license)

Deprecated
----------

[](#deprecated)

Please use [asispts/ptscs](https://github.com/asispts/ptscs)

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

[](#installation)

Install with composer

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

```

Usage
-----

[](#usage)

After installation, create `phpcs.xml` or `phpcs.xml.dist` file in the root of your project and add this code,

```

  src
  tests

  vendor

```

Run `phpcs` to validate your source code style and `phpcbf` to fix the violations.

Coding style
------------

[](#coding-style)

Examples of all coding style can be found at `/tests/**/_data/*.php.fixed`. Here is an example of a class declaration.

```
