biano/coding-standard

Coding standard for Biano projects

Installs: 40

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

4.1.0 2024-05-28 13:27 UTC

This package is auto-updated.

Last update: 2024-11-28 14:26:49 UTC


README

  • Run composer require --dev biano/coding-standard
  • Create phpcs.xml.dist file with:
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Coding Standard">
    <!-- basic settings -->
    <arg name="extensions" value="php"/>
    <arg name="encoding" value="utf-8"/>
    <arg name="colors"/>
    <arg value="sp"/>
    <file>src</file>
    <file>tests</file>
    <!-- standard -->
    <rule ref="BianoCodingStandard" />
</ruleset>

PhpStorm

Exported settings for PhpStorm are in the file PhpStorm.xml.