Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

The PHP coding standard of the Motionpicture projects. (temporary)

License

Notifications You must be signed in to change notification settings

MP-okui/php-coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Coding Standard

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>