The ultrafast unified PHP toolchain.
One fast Rust binary for your whole PHP workflow. Format, lint, analyse and install your packages.
curl -fsSL https://punphp.com/install | sh
One binary. Every command.
Pick one to see what it prints, and which tools it gives the same answers as.
Byte for byte with Pint PHP-CS-Fixer
$ pun format✔ src/Post.php format/control-flow/braces, format/operators/binary-spacing, 4 moreFormatted 1 file, 0 unchangedsrc/Post.php - if($this->title=='') return 'Untitled'; + if ($this->title == '') { + return 'Untitled'; + }
Three jobs. One pass. Done.
pun check formats, lints and analyses your project in a single run. By the time you look back at the terminal, all three are finished.
$ pun check✔ format All files formatted✖ lint 1 error in 1 file app/Http/Controllers/PostController.php:24:9 lint/laravel/no-request-all Avoid using `$request->all()` or `Request::all()`.✖ analyse 1 error in 1 file app/Models/Post.php:18:16 analyse/undefined/method Call to an undefined method App\Models\Post::publsh().✖ 2 errors
Example output from a small Laravel app.
Three configs walk in. One walks out.
One unified config to manage everything. pun migrate writes it from your pint.json, phpstan.neon and rector.php.
How migrate works# one file, every command [format] preset = "laravel" [lint] sets = ["dead-code", "modernize"] [analyse] preset = "recommended" paths = ["app", "tests"] baseline = "pun-baseline.toml"
Fast by design.
Speed is the feature, not a side effect. Pun is built so you never sit and wait for your tools, whether that is one file on save or a whole monorepo in CI.
Native, all the way down
One Rust binary. There is no PHP process to boot before it can read your code.
Every core, every file
Format, lint and analyse spread the work across every core your machine has.
Fast enough to forget
Put it on save, in a pre-commit hook and in every CI run. It keeps up with all three.
$ pun check pun check: fail, 2 errors (48 checked) app/User.php:42:13 lint/types/no-loose-comparison ... app/Post.php:18:16 analyse/undefined/method ...
Fewer tokens. Same answers.
Under Claude Code, Cursor, Codex, and other coding agents, every command switches to one line per problem. The docs ship llms.txt and a Markdown copy of every page.
Pun for agents