Code Style Pint
A Laravel Pint preset that implements the ArtisanPack UI code standards. Publish a ready-made pint.json and format your code to the same rules the code-style PHPCS package enforces — with an optional WordPress-style spacing mode.
v1.1.1
GPL-3.0-or-later License
★ 0
composer require artisanpack-ui/code-style-pint
$ composer require artisanpack-ui/code-style-pint --dev
✓ Installed as a dev dependency
$ php artisan artisanpack:publish-pint-config
✓ Published pint.json
$ ./vendor/bin/pint
✓ Fixed 0 files, 128 checked
What it does
Pint, pre-configured
The formatting half of the ArtisanPack UI code standards — drop in the preset and let Pint fix your code automatically.
Pint preset
A ready-made pint.json that matches the ArtisanPack UI code standards.
One-command publish
artisanpack:publish-pint-config drops the config into your project root.
Rich rule set
Array syntax, operator spacing, brace position, import ordering, trailing commas and more.
WordPress spacing
Opt into spaces-inside-parentheses via a PHP-CS-Fixer stub and the --wordpress flag.
Programmatic config
Ships Laravel Boost guidelines so AI assistants follow ArtisanPack standards.
Boost AI guidelines
Read everything through config('artisanpack.*') — no more hunting across scattered files.
Get started
Install, publish, format
Publish the pint.json, then run Pint to auto-fix formatting across your project.
1 · Install
composer require artisanpack-ui/code-style-pint --dev
2 · Publish Config
php artisan artisanpack:publish-pint-config
3 · Format
./vendor/bin/pint
Requirements
What you need
| Requirement | Detail | |
|---|---|---|
| Tooling | Laravel Pint | |
| Install | composer require --dev | |
| Config | pint.json (published) | |
| Pairs with artisanpack-ui/code-style (PHPCS) for the security and naming rules Pint can't enforce. | ||
Auto-format with Code Style Pint
Add the Pint preset and stop hand-fixing formatting. Free and open source under the MIT license.
