fiolasoft / coding-standard
Strict coding standards for our PHP projects
v0.1
2018-04-25 05:43 UTC
Requires
- php: >=7.1
- doctrine/coding-standard: ^4.0
This package is not auto-updated.
Last update: 2024-12-22 07:07:10 UTC
README
This is based on doctrine/coding-standard and heavily inspired by ninjify/coding-standard
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>