Laravel Pint
Laravel Pint is an opinionated PHP code style fixer that formats project files consistently.
What Laravel Pint is
Laravel Pint is an opinionated PHP code style fixer that formats project files consistently. It applies Laravel’s style by default and requires no configuration to begin. New Laravel applications include Pint automatically, and it is part of recent Laravel framework releases; older projects can install it with Composer. It supports Laravel, PER, PSR-12, Symfony, and empty presets, with additional customization through pint.json. Built on PHP CS Fixer, it can use that tool’s rules as well as Pint’s optional custom rules. By default, Pint checks PHP files outside the vendor directory. It can format selected files or directories, check for errors without changing files, and focus on Git branch differences or uncommitted changes. Laravel documents running Pint with GitHub Actions when code is pushed. Blade formatting is off by default; enabling it uses Prettier and Blade and Tailwind CSS plugins and requires Node.js. The current package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions. Pint is MIT-licensed open-source software.
Good
- Applies Laravel style without default configuration
- Supports five named formatting presets
- Can check Git changes without touching unrelated files
- MIT-licensed and free
Watch out
- Current package requires PHP ^8.3.0
- Blade formatting requires Node.js and is off by default
Who it suits
Pint suits PHP developers, especially teams working with Laravel, who want a consistent style fixer that is ready to use with little setup. It can also fit projects that need preset or rule customization and CI checks.
Verdict
Pint offers a straightforward way to apply and check PHP style, with presets and Git-aware run modes for more control. Confirm the PHP and extension requirements before adding it to a project.
Plans and prices
From Laravel Pint's own pricing page, checked 9 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Laravel Pint | Free | Open-source PHP code style fixer · MIT license |
The facts
Each one read from Laravel Pint's own pages, with the date it was checked.
What it does
- Blade formatting
- Blade formatting is off by default; enabling it uses Prettier and Blade and Tailwind CSS plugins, and requires Node.js.checked 8 Oct 2026
- Blade support
- Blade formatting is off by default and can be enabled with a rule or for one run with the --blade option; it uses Prettier and requires Node.js.checked 9 Oct 2026
- Check without changing files
- The `--test` option checks for style errors without changing files and returns a non-zero exit code when it finds errors.checked 8 Oct 2026
- CI integration
- Laravel documents configuring GitHub Actions to run Pint when code is pushed to GitHub.checked 9 Oct 2026
- Continuous integration
- Laravel’s documentation gives an example of running Pint with GitHub Actions when code is pushed.checked 8 Oct 2026
- Customization
- Users can customize presets, rules, and inspected folders in a pint.json configuration file.checked 9 Oct 2026
- Default behavior
- Pint requires no configuration by default and applies Laravel's coding style.checked 9 Oct 2026
- Default setup
- Pint requires no configuration by default and applies Laravel’s coding style.checked 8 Oct 2026
- File scope
- By default, Pint inspects project PHP files except those in the vendor directory, with configuration options to exclude more files and folders.checked 9 Oct 2026
- Git workflow
- The `--diff` option can limit work to files that differ from a specified Git branch, including for CI use.checked 8 Oct 2026
- Installation
- Pint is included in recent Laravel framework releases; older applications can install it with Composer.checked 9 Oct 2026
- Laravel installation
- Pint is automatically installed with new Laravel applications and is included in recent Laravel framework releases.checked 8 Oct 2026
- License
- The Laravel Pint repository identifies Pint as open-source software licensed under the MIT license.checked 8 Oct 2026
- License and security reporting
- Pint is MIT-licensed, and its repository directs users to its security policy to report vulnerabilities.checked 9 Oct 2026
- Other projects
- Older applications can install Pint with Composer using `composer require laravel/pint --dev`.checked 8 Oct 2026
- Parallel processing
- Experimental parallel mode can use every available machine core by default or a maximum process count specified by the user.checked 9 Oct 2026
- PHP CS Fixer rules
- Pint is built on PHP CS Fixer and can use its rules, along with Pint’s optional custom rules.checked 8 Oct 2026
- Presets
- Supported presets are laravel, per, psr12, symfony, and empty.checked 9 Oct 2026
- Purpose
- Laravel Pint is an opinionated PHP code style fixer built on PHP CS Fixer.checked 9 Oct 2026
- Requirements
- The current Packagist package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions.checked 9 Oct 2026
- Run modes
- Pint can format selected files or directories, inspect without changing files, and target Git diffs or uncommitted changes.checked 9 Oct 2026
- Supported presets
- Pint supports the `laravel`, `per`, `psr12`, `symfony`, and `empty` presets.checked 8 Oct 2026
- Who it is for
- The documentation says Pint is automatically installed with new Laravel applications and is ready to use immediately.checked 9 Oct 2026
Alternatives to Laravel Pint
- 1

Prettier
Free planOpen sourceWebAPIExtensionLinux7.5Free plan - 2
Avidemux
Free planOpen sourceWebLinuxmacOSWindows7.3Free plan - 3
Fourmolu
Free planWebLinuxWindows6.7Free plan - 4
rustfmt
Free planLinuxmacOSWindows6.6Free plan - 5
Black
Free planLinuxmacOSSelf-hostedWindows6.5Free plan - 6

Ruff
Free planWebLinuxmacOSSelf-hosted6.5Free plan
