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 (^10.0|^11.0|^12.0|^13.0) ensures compatibility with Laravel 13, reducing friction for teams adopting the latest Laravel version. This aligns with the package’s goal of supporting hybrid Laravel/WordPress ecosystems while future-proofing integrations.Str::of() usage in templates).SpacesInsideBracketsFixer.match expressions, new array syntax)?vendor/laravel/framework) conflict with this package’s rules when applied to hybrid projects?pint --test on a Laravel 13 skeleton project)?illuminate/support methods or macros?laravel/framework:^13.0 test container)?composer why-not laravel/framework:^13.0 to verify no conflicts exist with other packages.@php blocks, new directives).Str::of() in templates).composer.json to allow Laravel 13 (^13.0) if the team is upgrading. No changes to Pint/PHP-CS-Fixer configs are needed.match expressions").| Phase | Action Items | Dependencies |
|---|---|---|
| Prep | Update composer.json to include ^13.0 in illuminate/support constraint for this package. |
Composer access. |
| Validation | Test Pint/PHP-CS-Fixer on a Laravel 13 skeleton project; focus on Blade templates and new Laravel 13 features. | Laravel 13 environment. |
| ArtisanPack UI | Verify ArtisanPack UI packages work with Laravel 13 and this formatter; check for formatting regressions in UI components. | ArtisanPack UI dependencies. |
| CI Integration | Add Laravel 13-specific Pint/PHP-CS-Fixer tests to CI (e.g., if (laravel_version == 13) run_pint_with_wordpress_rules()). |
CI access, Laravel 13 test setup. |
| Adoption | Proceed with Laravel 13 upgrade; no changes to existing Pint/PHP-CS-Fixer workflows unless edge cases are found. | Laravel 13 upgrade approval. |
How can I help you explore Laravel packages today?