fredden / PHP-Code-Style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Code Style

Basic, PSR-12 based, coding standard for use by projects in the PHP Parallel Lint GitHub organisation.

Installation

Install this standard via Composer:

composer require --dev php-parallel-lint/php-code-style

Using the standard

Once installed for a project, use this standard via the command-line:

vendor/bin/phpcs . --standard=PHPParallelLint

Or use the standard in a project specific PHPCS ruleset:

<?xml version="1.0"?>
<ruleset name="Project Name">

    <rule ref="PHPParallelLint"/>

</ruleset>

About