polderknowledge/coding-standards

The Polder Knowledge coding standards for PHP_CodeSniffer.

Installs: 10 529

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

2.1.0 2019-10-29 15:45 UTC

This package is auto-updated.

Last update: 2024-10-29 05:04:45 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

This repository contains the PHP_CodeSniffer configuration for PHP coding standards used for projects we build. The file is an extension on the PSR-2 defaults. And can be used by any PHP project.

Install

Via Composer

$ composer require polderknowledge/coding-standards

Usage

Set the standard attribute in your build script to:

<phpcodesniffer standard="${project.basedir}/vendor/polderknowledge/coding-standards/PolderKnowledge/ruleset.xml">
    <!-- rest of your phpcodesniffer target -->
</phpcodesniffer>

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ vendor/bin/phpunit

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please report them via HackerOne instead of using the issue tracker or e-mail.

Community

We have an IRC channel where you can find us every now and then. We're on the Freenode network in the channel #polderknowledge.

Credits

License

Please see LICENSE.md for the license of this application.