lsbproject/php-clean-code-rules

This repository contains the most respectful (by the author meaning) rules for linters and static code analysers

Installs: 158

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

v2.0.0 2021-05-07 07:46 UTC

This package is auto-updated.

Last update: 2024-05-07 14:24:59 UTC


README

This repository contains the most respectful (by the author meaning) rules for linters and static code analysers.

This ruleset aims to transform the code to be like it was written by a single man improving readability and security of the whole project.

It covers psr-12, symfony and a lot of modern PHP features thanks to slevomat project.

Installation

composer require lsbproject/php-clean-code-rules --dev

Usage

Include in your project a phpcs.xml file with the following code:

<?xml version="1.0"?>
<ruleset name="AcmeApp">
    <config name="installed_paths" value="vendor/lsbproject/php-clean-code-rules" />
    <rule ref="LSBProject" />
</ruleset>