---
title: "PrettyPHP is an opinionated code formatter for PHP"
url: https://daily.dev/posts/prettyphp-is-an-opinionated-code-formatter-for-php-ty1p60ant
source_url: https://laravel-news.com/pretty-php
type: article
source: "Laravel News"
published: 2025-09-18T13:14:56.037Z
updated: 2025-12-08T02:16:04.149Z
tags: ["cli", "devtools", "laravel", "php"]
reading_time: 2
upvotes: 17
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PrettyPHP is an opinionated code formatter for PHP

**[Laravel News](https://daily.dev/sources/ln)** · 2 min read · 17 upvotes · 0 comments

## Summary

PrettyPHP is a fast, opinionated code formatter for PHP that runs without configuration and provides sensible defaults. It supports PHP 8.4 and below, formats code for readability and consistency, and includes presets for popular frameworks like Symfony, Drupal, Laravel, and WordPress. The tool is PSR-12 compliant and comes with a VS Code extension for automatic formatting on save.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/pretty-php>

---

Tags: [#cli](https://daily.dev/tags/cli), [#devtools](https://daily.dev/tags/devtools), [#laravel](https://daily.dev/tags/laravel), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/prettyphp-is-an-opinionated-code-formatter-for-php-ty1p60ant)
