syberisle/coding-standards

PHP_CodeSniffer rules to enforce SyberIsle coding conventions


Keywords
standards, phpcs, SyberIsle
License
MIT

Documentation

SyberIsle Coding Standards

Latest Version on Packagist Software License

Provides coding standards for SyberIsle projects and libraries.

Inherits from PSR-2 but has the following changes:

  • Tabs not spaces MUST be used for indentation
  • PHP 4 style constructors (class name) are not allowed
  • Todo or fixme comments belong in an issue tracker. Technical Debt is bad.
  • No BOM for UTF-8 files
  • extends and implements are on their own lines for classes

This also provides an xml file that you can import into PhpStorm.

Install

Via Composer

$ composer require syberisle/coding-standards

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dlundgren@syberisle.net instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.