nickwelsh/pint

An opinionated code formatter for PHP. Now with indentation options!
3,363
Install
composer require nickwelsh/pint
Latest Version:v1.22.0
PHP:^8.2.0
License:MIT
Last Updated:Apr 20, 2025
Links: GitHub  ·  Packagist
Maintainer: nickwelsh

Introduction

Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.

This fork specifically allows you to configure the indentation used by Pint.

Configuration

Specify a indent option in your pint.json file.

  • If you use tabs, set the value to \t
  • If you use 2 spaces, set the value to (two spaces)
  • If you use 4 spaces, set the value to (four spaces)

Example:

{
    "preset": "laravel",
    "indent": "\t"
}

Official Documentation

Documentation for Pint can be found on the Laravel website.

Contributing

Thank you for considering contributing to Pint! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Pint is open-sourced software licensed under the MIT license.

Related Packages

hyperlinkgroup/pint

An opinionated code formatter for PHP.

37,325 1
zenphp/pinte

An less opinionated version of Laravel Pint.

4,281 0
johnbacon/stout

An opinionated code formatter for PHP.

23,715 5
laravel/pint

An opinionated code formatter for PHP.

202,839,253 3,168
zenphp/fixr

An opinionated code formatter for PHP.

1,558 0

Version History

Version Released PHP License
v1.22.0 ^8.2.0 MIT