Download the PHP package matraux/php-cs-fixer-config without Composer
On this page you can find all versions of the php package matraux/php-cs-fixer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matraux/php-cs-fixer-config
More information about matraux/php-cs-fixer-config
Files in matraux/php-cs-fixer-config
Package php-cs-fixer-config
Short Description Shared PHP-CS-Fixer configuration with reusable rule sets for PHP 8.3+.
License MIT
Informations about the package php-cs-fixer-config
MATRAUX PHP-CS-Fixer config
Introduction
A PHP 8.3+ package that provides the shared MATRAUX configuration for friendsofphp/php-cs-fixer.
It exposes a ready-to-use Matraux\PhpCsFixer\Config for project .php-cs-fixer.dist.php files and reusable grouped rule sets for custom PHP-CS-Fixer configurations.
Useful for keeping formatting, imports, strict typing, class layout, PHPDoc cleanup, indentation, and line endings consistent across multiple PHP packages.
Features
- Ready-to-use PHP-CS-Fixer configuration via
Matraux\PhpCsFixer\Config - Public grouped rule sets for syntax, imports, operators, functions, PHPDoc, and classes
- PER-CS baseline with automatic PHP migration rules
- Strict typing, strict comparisons, strict parameters, and function alias cleanup
- Import ordering, unused import removal, and fully qualified type normalization
- Class member ordering and class element separation
- Tabs and LF line endings configured by default
- Risky PHP-CS-Fixer rules enabled explicitly
Installation
PHP compatibility
This package provides separate major versions for different PHP baselines.
| Version | PHP |
|---|---|
| 1.x | 7.4+ |
| 2.x | 8.3+ |
Examples
Full configuration
Create file .php-cs-fixer.dist.php or .php-cs-fixer.php in root.
This configuration runs in risky mode by default. If you need a different rule profile, compose your own PHP-CS-Fixer config from the provided rule set definitions.
Custom PHP-CS-Fixer configuration
Run code style check
Run code style fixer
Visual Studio Code
Visual Studio Code format setup is documented in Visual Studio Code.
Development
See Development for debug, static analysis, and coding standards.
Support
For bug reports and feature requests, please use the issue tracker.