Skip to content
Esc
↑↓navigate↵open⌘Jpreview

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
The Pun mascot: a grape elephant in yellow sneakers, sprinting and winking

One toolchain. Every step.

Install your dependencies, check your code, fix what can be fixed. One binary covers the whole loop.

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.

~/blog
$ 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.

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
pun.tomlTOML
# 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.

See the parity scoreboard
pun check · under Claude Codeagent
$ 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

Stop waiting
on your tools.