Pun replaces five PHP tools with one Rust binary, in public beta
The toolchain folds Pint, PHP-CS-Fixer, Rector, PHPStan and Larastan into a single pun.toml-configured binary that formats and lints PHP without a PHP install.
Pun is now in public beta: a native Rust binary that formats, lints, analyses and installs Composer packages for PHP 8.3+ projects. It replaces five separate tools, Pint, PHP-CS-Fixer, Rector, PHPStan and Larastan, with one pun.toml config file.
pun format matches Pint’s output byte for byte, and neither it nor pun lint or pun analyse need a working PHP installation to run. A pun migrate command reads your existing Pint, PHP-CS-Fixer, Rector and PHPStan configs and ports what it can, warning about anything it skips. The project is shipping daily: its latest beta build landed on 28 November.
pun check --fix
Why it matters: a single binary that formats and lints PHP without PHP installed is a smaller, faster CI step, and one config file beats five. If you maintain a large Laravel or PHP codebase, it is worth a trial run against your existing Pint and PHPStan setup before you rely on it.
The caveat: Pun doesn’t yet cover every rule from the tools it replaces, it has no support for custom Composer installer paths, and Blade template formatting still needs Node.js unless you switch on its native mode.