ninjify/coding-standard

Tuned & very strict coding standards for PHP projects. Trusted by Contributte, Apitte, Nettrine and many others.

Installs: 460 599

Dependents: 12

Suggesters: 0

Security: 0

Stars: 13

Watchers: 4

Forks: 5

Open Issues: 0

Language:Shell

v0.12.1 2022-02-11 14:34 UTC

This package is auto-updated.

Last update: 2024-04-22 17:41:01 UTC


README

68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f646d2f6e696e6a6966792f636f64696e672d7374616e64617264 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6e696e6a6966792f636f64696e672d7374616e64617264

68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6e696e6a6966792f636f64696e672d7374616e64617264 68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f6e696e6a6966792f636f64696e672d7374616e64617264 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77 68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Usage

To install latest version of ninjify/coding-standard use Composer.

composer require --dev ninjify/coding-standard

Versions

State Version Branch PHP
dev ^0.13 master >=7.2
stable ^0.12 master >=7.2

Documentation

Usage

File Usage
ruleset global
contributte Contributte, Apitte, Nettrine

Create ruleset.xml in root of your project.

<?xml version="1.0"?>
<ruleset name="Acme">
    <!-- Ninjify Coding Standard -->
    <rule ref="./vendor/ninjify/coding-standard/ruleset.xml"/>

    <!-- OR -->
    
    <!-- Contributte Coding Standard -->
    <rule ref="./vendor/ninjify/coding-standard/contributte.xml"/>

    <!--Exclude folders -->
    <exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>

Integration

Take a look at phpstorm folder, there should be prepared codestyle.

Development

See how to contribute to this package. This package is currently maintained by these authors.

538058?v=3&s=80

Consider to support contributte development team. Also thank you for using this package.