Registry / build-tool / magento-magento-coding-standard

magento-magento-coding-standard

JSON →
library2.0.0phppackagistunverified

A set of Magento specific PHP CodeSniffer rules.

composer require magento/magento-coding-standard
INSTALL
IMPORT
SIG · MAGENTO-MAGENTO-CO
M
magento-magento-coding-standard
build-toolphpv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ObjectInstantiationSniff
use Magento\Sniffs\Classes\ObjectInstantiationSniff;

Check code against Magento coding standards via CLI.

// This package provides PHP_CodeSniffer sniffs. // Run: vendor/bin/phpcs --standard=Magento2 /path/to/code
Debug
Known issues
breakingVersion 2.0 requires PHP 8.0+ and Magento 2.4+.
fix
Use version 1.x for older Magento versions.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
magento-magento-coding-standard — pip install magento-magento-coding-standard · libregistry