FREEDOM251

Freedom251 › Code Formatting Tools

Laravel Pint

Free plan MacSelf-hosted

Visit Laravel Pint Alternatives Pricing

Laravel Pint's own site

What Laravel Pint is

Laravel Pint is a PHP code style fixer that applies Laravel’s formatting rules by default, with no setup configuration required. It is included in recent Laravel releases and new Laravel applications; older projects can add it with Composer. Pint supports Laravel, PER, PSR-12, Symfony, and empty presets, and its pint.json file can adjust rules, presets, and inspected folders. It is built on PHP CS Fixer and can use that tool’s rules alongside Pint’s optional custom rules. By default, it checks PHP files in a project while skipping the vendor directory. You can format chosen files or directories, run a check that reports style errors without changing files, or target files changed relative to a Git branch. Laravel documents a GitHub Actions workflow for running Pint on pushes. Blade formatting is optional and requires Node.js. Pint is free, open-source software under the MIT license. The current package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions.

Who it suits

Pint suits PHP developers, especially teams using Laravel that want a ready-to-use style fixer. Its Git-diff and check-only modes also fit projects that include style checks in CI.

What it does well

  • Applies Laravel style without default configuration
  • Offers five supported presets
  • Can check files without changing them
  • Can target Git changes for CI

What to know first

  • Blade formatting is off by default
  • Blade formatting requires Node.js
  • Current package requires PHP ^8.3.0

Limits

Blade formatting is disabled by default; enabling it requires Node.js. The current Packagist package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions.

Plans

PlanBilled and limitsPrice
Laravel PintOpen-source PHP code style fixer · MIT licenseFree

As laravel.com lists them, read 9 Oct 2026. The maker's own page has the final word.

Getting started

  1. Open the Laravel Pint documentation at https://laravel.com/docs/pint.
  2. Use Pint already included with a new Laravel application or a recent Laravel framework release.
  3. For an older application or another PHP project, install it with Composer using `composer require laravel/pint --dev`.
  4. Run Pint on the project or select files and directories to format.
  5. Use `--test` to check style without changing files, or target Git changes for a workflow.

Verdict

Pint provides a straightforward way to apply consistent PHP formatting, with presets and rule customization for projects that need them. Check the PHP and extension requirements, and note the extra Node.js requirement if you plan to format Blade files.

Questions

How much does Laravel Pint cost?

Pint is free. Its plan is listed as free.

Is Laravel Pint open source?

Yes. The repository identifies it as open-source software under the MIT license.

Which PHP styles does Pint support?

Its presets are laravel, per, psr12, symfony, and empty. It can also use PHP CS Fixer rules and Pint’s optional custom rules.

Does Pint format Blade files?

Blade formatting is off by default. It can be enabled with a rule or for one run with `--blade`; it uses Prettier and Blade and Tailwind CSS plugins and requires Node.js.

How do older projects install Pint?

Older applications can add it as a Composer development dependency with `composer require laravel/pint --dev`.

What does Pint require?

The current Packagist package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions.

Facts from Laravel Pint's own pages

Blade formatting
Blade formatting is off by default; enabling it uses Prettier and Blade and Tailwind CSS plugins, and requires Node.js. · laravel.com, 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. · laravel.com, 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. · laravel.com, 8 Oct 2026
CI integration
Laravel documents configuring GitHub Actions to run Pint when code is pushed to GitHub. · laravel.com, 9 Oct 2026
Continuous integration
Laravel’s documentation gives an example of running Pint with GitHub Actions when code is pushed. · laravel.com, 8 Oct 2026
Customization
Users can customize presets, rules, and inspected folders in a pint.json configuration file. · laravel.com, 9 Oct 2026
Default behavior
Pint requires no configuration by default and applies Laravel's coding style. · laravel.com, 9 Oct 2026
Default setup
Pint requires no configuration by default and applies Laravel’s coding style. · laravel.com, 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. · laravel.com, 9 Oct 2026
Git workflow
The `--diff` option can limit work to files that differ from a specified Git branch, including for CI use. · laravel.com, 8 Oct 2026
Installation
Pint is included in recent Laravel framework releases; older applications can install it with Composer. · laravel.com, 9 Oct 2026
Laravel installation
Pint is automatically installed with new Laravel applications and is included in recent Laravel framework releases. · laravel.com, 8 Oct 2026
License
The Laravel Pint repository identifies Pint as open-source software licensed under the MIT license. · github.com, 8 Oct 2026
License and security reporting
Pint is MIT-licensed, and its repository directs users to its security policy to report vulnerabilities. · github.com, 9 Oct 2026
Other projects
Older applications can install Pint with Composer using `composer require laravel/pint --dev`. · laravel.com, 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. · laravel.com, 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. · laravel.com, 8 Oct 2026
Presets
Supported presets are laravel, per, psr12, symfony, and empty. · laravel.com, 9 Oct 2026
Purpose
Laravel Pint is an opinionated PHP code style fixer built on PHP CS Fixer. · laravel.com, 9 Oct 2026
Requirements
The current Packagist package requires PHP ^8.3.0 and the json, mbstring, tokenizer, and xml extensions. · packagist.org, 9 Oct 2026
Run modes
Pint can format selected files or directories, inspect without changing files, and target Git diffs or uncommitted changes. · laravel.com, 9 Oct 2026
Supported presets
Pint supports the `laravel`, `per`, `psr12`, `symfony`, and `empty` presets. · laravel.com, 8 Oct 2026
Who it is for
The documentation says Pint is automatically installed with new Laravel applications and is ready to use immediately. · laravel.com, 9 Oct 2026

Where Laravel Pint stands on Freedom251

Look at these too