Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jamesrezo/spip-coding-standards
- Owner: JamesRezo
- License: mit
- Created: 2021-08-13T17:48:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-29T17:24:23.000Z (4 months ago)
- Last Synced: 2024-11-30T00:22:20.627Z (about 2 months ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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
```