Skip to content
r.

plugin-php

prettier/plugin-php · Public GitHub repository

Prettier PHP Plugin

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

plugin-php live demo screenshot
Captured from the live demo · 2026-11-23

About this project

Author-written excerpt from the project README.

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

This plugin adds support for the PHP language to Prettier.

This plugin uses PSR / PER as guidance when making formatting decisions, but does not aim to be fully PSR / PER compliant. The idea is to stay reasonably close to how Prettier for JS works.

Requirements and intended audience

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-21. Source: https://github.com/prettier/plugin-php/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-11-17. Saved release: v0.25.0 · 2026-03-29. These dates do not guarantee ongoing maintenance.

Technologies
PHP
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-23. This does not test every feature.

Browse related categories