Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jamesrezo/spip-coding-standards

SPIP Coding Standards
https://github.com/jamesrezo/spip-coding-standards

Last synced: about 2 months ago
JSON representation

SPIP Coding Standards

Awesome Lists containing this project

README

        

# SPIP Standard Coding Rules for PHP_CodeSniffer

This is a set of rules for [PHP CodeSniffer](https://github.com/phpcsstandards/PHP_CodeSniffer) that checks for SPIP Coding Standard and PHP Compatibility for SPIP v4.0+.

## Installation

```bash
composer require --dev dealerdirect/phpcodesniffer-composer-installer spip/coding-standards
```

## Usage

```bash
vendor/bin/phpcs --standard=SCS1 /path/to/file
```

or create a `phpcs.xml` file containing this:

```xml

/path/to/file

```

and run :

```bash
vendor/bin/phpcs
```