phpfmt

command module
v0.0.0-...-520d0b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 13 Imported by: 0

README

phpfmt

The opinionated PHP code formatter powered by Go—think gofmt, but for PHP.

TL;DR Run phpfmt -w . and stop arguing about code style.
Status Beta – already production-ready for many teams, but we still expect to receive reports of edge cases.

Why phpfmt?

  1. Zero-config, one true style – phpfmt enforces a single canonical layout so you never waste time on bikeshedding.
  2. Drop-in for CI – fail the build when files aren’t formatted, or auto-fix in pre-commit hooks.

Installation

go install mibk.dev/phpfmt@latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package naive provides a deliberately minimal PHP parser and pretty-printer.
Package naive provides a deliberately minimal PHP parser and pretty-printer.
Package phpdoc implements parsing and printing of PHPDoc comments.
Package phpdoc implements parsing and printing of PHPDoc comments.
phptype
Package phptype declares PHP types that can be used in PHPDoc syntax trees.
Package phptype declares PHP types that can be used in PHPDoc syntax trees.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL