mp-okui / php-coding-standard
The PHP coding standard of the Motionpicture projects. (temporary)
Installs: 673
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:phpcodesniffer-standard
Requires
- php: ^7.2|^8.0
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.0
- slevomat/coding-standard: ^6.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2023-09-15 07:52:31 UTC
README
The PHP coding standard of the Motionpicture projects. (temporary)
Introduction
This project is PHP_CodeSniffer rules. It also contains the rules of the Slevomat Coding Standard.
Installation
Standards can be installed with the Composer dependency manager.
composer require --dev mp-okui/php-coding-standard
Make sure that the installed coding standards include Motionpicture.
phpcs -i
Usage
Command line
phpcs --standard=Motionpicture example.php
Configuration File
If you need to further customize the selection of sniffs for your project - you can create a custom ruleset file.
<?xml version="1.0"?> <ruleset name="MyStandard"> <rule ref="Motionpicture"/> </ruleset>