The ultrafast unified PHP toolchain.
One very, very fast Rust binary for your whole PHP workflow. Format, lint, analyse and install your packages.
curl -fsSL https://pun.laravel.cloud/install | sh
One toolchain. Every step.
Install your dependencies, check your code, fix what can be fixed. One binary covers the whole loop.
Install
nowResolve and install your project's packages from Packagist, with the same parallel speed as everything else.
$ pun install
Check
nowFormat, lint and analyse the whole project in one pass, with one pun.toml.
$ pun check
Fix
nowApplies the lint fixes, formats, then analyses what is left for you to fix by hand.
$ pun check --fix
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.
Everything gets fast.
Format
behaviour-safeLayout only. Fast enough to run on every save.
$ pun format
Lint
you choose the fixesBetter ways to write the same code, applied only when you say so.
$ pun lint --fix
Analyse
Larastan built inFinds the bugs before your users do, with no levels to juggle.
$ pun analyse
Install
Composer-compatibleA package manager for Packagist, built for speed: parallel downloads, a shared cache and an instant no-op install.
$ pun install
Very, very fast. On purpose.
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.
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"
Same answers as the tools you trust.
Format
Byte for byte with Pint and PHP-CS-Fixer. Every project on the scoreboard has zero differing files.
Lint
Rector, rector-laravel, Mago and the risky fixers, under one set of rule names. pun migrate maps your config.
Analyse
Every PHPStan identifier maps to one Pun rule, with Larastan built in.
Install
The same lock and vendor/ tree Composer writes for the same requirements.
$ pun check pun check: fail, 2 errors (48 checked, 0.31s) 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 friends, every command switches to one line per problem. The docs ship llms.txt and a Markdown copy of every page.
Pun for agents