New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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

Logo Laravel Pint

Overview Laravel Pint

Build Status Total Downloads Latest Stable Version License

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

zenphp/pinte

An less opinionated version of Laravel Pint.

4,588 0
zenphp/fixr

An opinionated code formatter for PHP.

1,804 0
laravel/pint

An opinionated code formatter for PHP.

214,519,084 3,170
hyperlinkgroup/pint

An opinionated code formatter for PHP.

39,280 1
johnbacon/stout

An opinionated code formatter for PHP.

24,430 5

Version History

Version Released PHP License
v1.22.0 ^8.2.0 MIT