artisanpack-ui/code-style-pint
Laravel Pint preset matching ArtisanPack UI coding standards. Publishes a ready-made pint.json for apps or generates it via builder for packages. Optional WordPress-style spacing support via PHP-CS-Fixer stubs and commands.
illuminate/support constraint to allow Laravel 13 (^10.0|^11.0|^12.0|^13.0), unblocking Laravel 13 installs for downstream ArtisanPack UI packages that depend on this package.pint.json with ArtisanPack UI coding standards\n- PublishPintConfigCommand artisan command for publishing configuration\n- PintConfigBuilder class for programmatic configuration generation\n- ArtisanPackUIPreset class with organized rule groups\n- Support for Laravel applications via artisan commands\n- Support for Laravel packages via programmatic configuration\n- Comprehensive documentation:\n- Customization guide with rule group toggles\n- Rules mapping between PHPCS and Pint\n- IDE integration guides (PhpStorm, VS Code, Vim, Emacs)\n- CI/CD integration examples (GitHub Actions, GitLab CI, Bitbucket, CircleCI, Azure DevOps, Jenkins)\n- Migration guide from various code style tools\n- Laravel Boost AI guidelines integration\n- Override guideline for replacing default Pint standards\n- Complete test suite with 54 tests (Unit, Feature, Integration)\n- GitLab CI/CD pipeline with automated releases\n### Features\n- Three rule groups: Formatting, Code Structure, Best Practices\n- Aligned assignment operators (= and =>)\n- Short array syntax enforcement\n- Strict types declaration\n- Alphabetically sorted imports\n- Yoda style for equality comparisons\n- Single quotes for simple strings\n- Visibility required on all class elements\n- Trailing commas in multiline constructs\n- Comprehensive exclusion defaults (vendor, node_modules, storage, etc.)\n### Compatibility\n- PHP 8.2+\n- Laravel 10.x, 11.x, 12.x\n- Laravel Pint 1.x\n- Complements artisanpack-ui/code-style PHPCS packageSpacesInsideParenthesisFixer - Adds spaces inside parentheses (e.g., if ( ))\n- SpacesInsideBracketsFixer - Adds spaces inside brackets for variable array indices (e.g., [ ])\n- concat_space rule for spacing around concatenation operators (e.g., .)\n- .php-cs-fixer.dist.php configuration file with custom fixers\n- .php-cs-fixer.dist.php.stub for publishing to user projects\n- --wordpress flag for artisan artisanpack:publish-pint-config command\n- WordPress spacing documentation in README for both Laravel applications and packages\n- Package-specific WordPress spacing setup instructions\n- Comprehensive WordPress spacing examples in Laravel Boost guidelines\n### Changed\n- Updated PublishPintConfigCommand to support WordPress-style spacing option\n- Enhanced Laravel Boost AI guidelines with WordPress spacing instructions\n- Updated README with WordPress-style spacing section\n- Modified rule groups documentation to reflect concatenation spacing\n- Updated composer scripts examples for both Pint and PHP-CS-Fixer workflows\n### Removed\n- declare_strict_types rule from default configuration (was too strict for some projects)\n- Strict types mentions from documentation and guidelines\n### Fixed\n- Custom bracket fixer now correctly processes closing brackets by handling index shifts\n- WordPress spacing correctly distinguishes between variable indices ([ ]) and literal indices (['key'])How can I help you explore Laravel packages today?