echo-fusion/codestandard

This project contains the code standard for echoFusion framework

v1.0.3 2024-09-30 15:49 UTC

This package is auto-updated.

Last update: 2025-01-30 16:45:41 UTC


README

This package promotes uniformity across all EchoFusion framework packages by establishing a standardized set of rules for the "friendsofphp/php-cs-fixer" package.

Installation

Install the package via Composer:

composer require echo-fusion/codestandard

Requirements

The following versions of PHP are supported by this version.

  • PHP 8.1
  • PHP 8.2
  • PHP 8.3

Usage

To develop packages that will integrate with the EchoFusion framework, follow this rule set configuration. Here's how to apply it:

Copy the phpcs-fixer configuration file from the template directory and remove the 'template' extension. Your final configuration file should be named: .php-cs-fixer.dist.php

Now you can execute command:

./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php

Testing

Testing includes PHPUnit and PHPStan (Level 7).

$ composer test

Credits

Developed and maintained by Amir Shadanfar.
Connect on LinkedIn.

License

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