Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding-standard

Dixydo coding standard for PHP CodeSniffer.

This coding standard is based on PSR-12 with some additional 3rd party and custom sniffs to enforce better code formatting.

Install as a dev dependency using composer

composer require --dev dixydo/coding-standard

Create ruleset.xml in the root of your project

<?xml version="1.0"?>
<ruleset>
    <arg name="basepath" value="."/>
    <arg name="cache" value=".phpcs-cache"/>

    <file>src/</file>

    <config name="installed_paths" value="vendor/dixydo/coding-standard"/>
    <rule ref="Dixydo"/>
</ruleset>

Run PHP CodeSniffer

Run the check and display report

vendor/bin/phpcs --standard=ruleset.xml

Run and automatically fix issues

vendor/bin/phpcbf --standard=ruleset.xml

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages