Laravel Pint
laravel.com
- Free plan
- macOS
- Self-hosted
What Laravel Pint is
Laravel Pint is a free, open-source PHP code style fixer that applies Laravel’s coding style by default. It requires no configuration for its standard setup, and new Laravel applications install it automatically; recent Laravel framework releases include it as well. Older projects can add Pint with Composer. Supported presets include Laravel, PER, PSR-12, Symfony, and empty, while a pint.json file can customize presets, rules, and inspected folders. Pint is built on PHP CS Fixer and can use its rules alongside optional Pint rules. By default, it checks project PHP files outside the vendor directory. Commands can format selected files or directories, test for style errors without changing files, or target Git branch differences and uncommitted changes. Blade formatting is disabled by default; enabling it uses Prettier with Blade and Tailwind CSS plugins and requires Node.js. Laravel documents GitHub Actions integration. The current package requires PHP ^8.3.0 plus json, mbstring, tokenizer, and xml extensions.
Who it suits
Pint suits Laravel and PHP developers who want consistent formatting in projects or CI workflows. It is also useful for teams customizing style presets, checking Git changes, or integrating formatting into GitHub Actions.
Good to know, and what to watch
- Free, MIT-licensed open-source tool
- No default configuration required
- Supports multiple coding-style presets
- Can check without changing files
- Targets Git diffs and uncommitted work
- Current package requires PHP ^8.3.0
- Blade formatting requires Node.js
- Blade formatting is off by default
- PHP-only scope
Plans
Every plan and priceLaravel Pint
Free plan
The verdict
Laravel Pint provides an opinionated PHP formatter with sensible Laravel defaults and several workflow modes. Its PHP and Node.js requirements, plus optional Blade setup, should be checked against the project environment.
What the maker publishes
- Blade formatting
- Blade formatting is off by default; enabling it uses Prettier and Blade and Tailwind CSS plugins, and requires Node.js. source
- 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. source
- 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. source
- CI integration
- Laravel documents configuring GitHub Actions to run Pint when code is pushed to GitHub. source
- Continuous integration
- Laravel’s documentation gives an example of running Pint with GitHub Actions when code is pushed. source
- Customization
- Users can customize presets, rules, and inspected folders in a pint.json configuration file. source
- Default behavior
- Pint requires no configuration by default and applies Laravel's coding style. source
- Default setup
- Pint requires no configuration by default and applies Laravel’s coding style. source
- File scope
- By default, Pint inspects PHP files in the project except those in the `vendor` directory. source
- File scope
- By default, Pint inspects project PHP files except those in the vendor directory, with configuration options to exclude more files and folders. source
- Git workflow
- The `--diff` option can limit work to files that differ from a specified Git branch, including for CI use. source
- Installation
- Pint is included in recent Laravel framework releases; older applications can install it with Composer. source
- Laravel installation
- Pint is automatically installed with new Laravel applications and is included in recent Laravel framework releases. source
- License
- The Laravel Pint repository identifies Pint as open-source software licensed under the MIT license. source
- License and security reporting
- Pint is MIT-licensed, and its repository directs users to its security policy to report vulnerabilities. source
- Other projects
- Older applications can install Pint with Composer using `composer require laravel/pint --dev`. source
- Parallel processing
- Experimental parallel mode can use every available machine core by default or a maximum process count specified by the user. source
- PHP CS Fixer rules
- Pint is built on PHP CS Fixer and can use its rules, along with Pint’s optional custom rules. source
- Presets
- Supported presets are laravel, per, psr12, symfony, and empty. source
- Purpose
- Laravel Pint is an opinionated PHP code style fixer built to keep code style clean and consistent. source
- Purpose
- Laravel Pint is an opinionated PHP code style fixer built on PHP CS Fixer. source
- Requirements
- The current Packagist package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions. source
- Run modes
- Pint can format selected files or directories, inspect without changing files, and target Git diffs or uncommitted changes. source
- Supported presets
- Pint supports the `laravel`, `per`, `psr12`, `symfony`, and `empty` presets. source
Checked against the maker's pages on 9 Oct 2026.