Laravel Pint Documentation

repository·main·Indexed 25 days ago

https://github.com/laravel/pint

An opinionated PHP code style fixer built on top of PHP-CS-Fixer. It provides a CLI tool to maintain clean and consistent code styles with minimal configuration, supporting path-based fixing and stdin input for CI pipelines.

Tokens
232
Snippets
0
Records
5
Agent score
35%

What's inside Laravel Pint

  1. Introduction to Laravel Pint

    main
    Laravel Pint is an opinionated PHP code style fixer designed for minimalists. It is built on top of PHP-CS-Fixer and is used to ensure that PHP code remains clean and consistent across a project.
  2. Use Pint with stdin input

    main
    Pint can process code sent via stdin. This is useful for CI pipelines or piping content from other tools. You can provide context for the file path using the --stdin-filename option, which allows Pint to respect exclusion rules defined in your configuration. If no filename is provided, it defaults to stdin.php.