youwe/coding-standard-magento1

Youwe PHP Coding Standard for Magento1

1.3.0 2022-03-25 10:11 UTC

This package is auto-updated.

Last update: 2024-04-25 14:47:43 UTC


README

This is the Youwe coding standard for Magento 1 projects. It is based on the default Youwe coding standard but some tests have been removed to create a workable and fast standard.

Installation

Use composer to require the standard in a project.

composer require --dev youwe/coding-standard-magento1

To let PHPCS know that this standard should be used add a phpcs.xml file in the root of the project.

<?xml version="1.0"?>
<ruleset>
    <rule ref="./vendor/youwe/coding-standard-magento1/src/Magento1"/>
</ruleset>

Integration with PHPStorm and automatic testing

The recommended way to enable the coding standard in PHPStorm and automatic testing is by requiring the Youwe testing suite in a project.

composer require --dev youwe/testing-suite

For more information go to Youwe Testing Suite.

Contribution guidelines

Contributions are welcome. Please create pull requests which add or remove tests.