{"repo":"lkrms/pretty-php","free":true,"listed":false,"github":"https://github.com/lkrms/pretty-php","clone":"git clone https://github.com/lkrms/pretty-php.git","description":"The opinionated PHP code formatter","language":"PHP","stars":150,"topics":["formatter","php","deterministic","opinionated"],"license":"MIT","category":"dev-tools","readme_excerpt":"pretty-php: the opinionated code formatter --- pretty-php is a fast, deterministic, minimally configurable code formatter for PHP, written in PHP. It looks after the whitespace in your code so you have more time and energy for the content. Inspired by [Black][], pretty-php aims to produce the smallest diffs possible and for code to look the same regardless of the project you're working on, eliminating visual dissonance and improving the effectiveness of code review. You can run pretty-php from the command line, use it in your [editor][], add it to your CI workflows, pair it with your preferred linter, and more. It has sensible defaults and runs without configuration. If you have questions or feedback, I'd love to [hear from you][discuss]. Features - Formats code written for PHP 8.4 and below (when running on a compatible version of PHP), including [property hooks][] introduced in PHP 8.4 - Code is formatted for readability , consistency , and small diffs - Previous formatting is ignored , and nothing other than whitespace is changed (see Pragmatism for exceptions) - Entire files are formatted in place - Formatting options are deliberately limited ( pretty-php is opinionated so you don't have to be) - Configuration via a simple JSON file is supported but not required - Formatted and original code are compared for equivalence - Compliant with [PSR-12][] and [PER][] (see [PSR-12 compliance][] for details) - Supports Symfony , Drupal , Laravel and WordPress code styles via preset","default_branch":null,"files":null,"tree":[],"storefront":"/r/lkrms","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lkrms/pretty-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}