Download the PHP package dmitryrechkin/php-standard without Composer
On this page you can find all versions of the php package dmitryrechkin/php-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dmitryrechkin/php-standard
More information about dmitryrechkin/php-standard
Files in dmitryrechkin/php-standard
Download dmitryrechkin/php-standard
More information about dmitryrechkin/php-standard
Files in dmitryrechkin/php-standard
Vendor dmitryrechkin
Package php-standard
Short Description Dmitry Rechkin's - PHP Coding Standard
License AGPL-3.0-only
Package php-standard
Short Description Dmitry Rechkin's - PHP Coding Standard
License AGPL-3.0-only
Please rate this library. Is it a good library?
Informations about the package php-standard
Dmitry Rechkin's PHP Coding Standard
A comprehensive PHP coding standard package based on PSR-12 with additional tools for WordPress plugin development compatibility.
Features
- PHP CodeSniffer: PSR-12 based coding standard with Slevomat additions
- PHPStan: Static analysis for code quality and bug detection
- PHPLint: Fast PHP syntax and linting tool
- WordPress Compatibility: Optimized for WordPress minimum PHP 7.4+ requirements
Requirements
- PHP 7.4 or higher (aligns with WordPress requirements)
- Composer
Installation
Usage
Scripts
The package includes several shell scripts for easy integration:
bin/phpcs.sh- Run CodeSniffer analysisbin/phpcbf.sh- Run CodeSniffer auto-fixingbin/phplint.sh- Run PHP lintingbin/phpstan.sh- Run PHPStan static analysis
Composer Scripts
WordPress Compatibility
This coding standard is specifically configured for WordPress plugin development:
- Minimum PHP Version: 7.4 (WordPress requirement for 2025)
- Level 5 PHPStan: Balanced strictness with WordPress compatibility
- Hook Compatibility: Allows unused parameters for WordPress action/filter hooks
- Dynamic Properties: Supports WordPress object patterns
- Mixed Types: Allows
mixedtype hints for WordPress API compatibility
Configuration
PHPStan
The php-standard.neon configuration includes:
- Level 5 analysis (good balance for WordPress)
- WordPress-specific error allowances
- Compatibility with dynamic properties
- Support for hook patterns
CodeSniffer
The php-standard.xml standard includes:
- PSR-12 base standard
- Slevomat Coding Standard additions
- Variable analysis for unused variables
- WordPress-compatible rule exclusions
- Tab indentation (4 spaces)
- JavaScript/CSS exclusions -
*.js,*.css, and minified files are automatically excluded (use ESLint/Stylelint instead)
Integration with Projects
To use this standard in your project:
-
Add to your project's
composer.json: - Create symlinks to the scripts:
File Structure
License
AGPL-3.0-only
Author
Dmitry Rechkin [email protected]
Changelog
v1.1.0 (2025)
- Added PHPStan 2.0 support
- Added WordPress PHP 7.4+ compatibility
- Enhanced static analysis capabilities
- Added comprehensive error ignore patterns for WordPress
- Improved script robustness
v1.0.0
- Initial release with PSR-12 + Slevomat support
- PHPLint integration
- Basic CodeSniffer configuration
All versions of php-standard with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
overtrue/phplint Version ^3.4|^9.0
squizlabs/php_codesniffer Version ^3.13
sirbrillig/phpcs-variable-analysis Version ^2.12
dealerdirect/phpcodesniffer-composer-installer Version ^1.1
slevomat/coding-standard Version ^8.20.0
phpstan/phpstan Version ^2.0
phpstan/extension-installer Version ^1.4
phpstan/phpstan-strict-rules Version ^2.0
php-stubs/wordpress-stubs Version ^6.0
szepeviktor/phpstan-wordpress Version ^2.0
overtrue/phplint Version ^3.4|^9.0
squizlabs/php_codesniffer Version ^3.13
sirbrillig/phpcs-variable-analysis Version ^2.12
dealerdirect/phpcodesniffer-composer-installer Version ^1.1
slevomat/coding-standard Version ^8.20.0
phpstan/phpstan Version ^2.0
phpstan/extension-installer Version ^1.4
phpstan/phpstan-strict-rules Version ^2.0
php-stubs/wordpress-stubs Version ^6.0
szepeviktor/phpstan-wordpress Version ^2.0
The package dmitryrechkin/php-standard contains the following files
Loading the files please wait ...