fiolasoft/coding-standard

Strict coding standards for our PHP projects

v0.1 2018-04-25 05:43 UTC

This package is not auto-updated.

Last update: 2024-11-10 06:33:24 UTC


README

This is based on doctrine/coding-standard and heavily inspired by ninjify/coding-standard

Downloads total Latest stable

Install

composer require --dev fiolasoft/coding-standard

Usage

Create ruleset.xml in root of your project.

NOTE: It is recommanded to use this with FiolaSoft/qa

<?xml version="1.0"?>
<ruleset name="YourProject">
    <!-- Extending rulesets -->
    <rule ref="vendor/fiolasoft/coding-standard/ruleset.xml"/>
    
    <!-- OR (not both, since ruleset.xml is included in ruleset-nette.xml) -->
    
    <!-- FiolaSoft [Nette] -->
    <!-- <rule ref="vendor/fiolasoft/coding-standard/ruleset-nette.xml"/> -->

    <!-- My rules -->
    
    <!-- Exclude folders -->
    <exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>