Menu

Pun vs Pint, Larastan and Composer on a Real Laravel App: What Got Faster, What Broke
📰

Pun vs Pint, Larastan and Composer on a Real Laravel App: What Got Faster, What Broke

DEV Community: laravel·Hafiz·about 16 hours ago
#6TvqQrkr
#devtolaravel#devto#dev#larastan#vendor
Long article (2314 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published at hafiz.dev

Pun, built by Pushpak Chhajed, wants to replace six tools with one binary. It formats like Pint and PHP-CS-Fixer, analyses like PHPStan and Larastan, refactors like Rector and installs packages like Composer, all from one Rust executable and one pun.toml . Nuno Maduro called it "bun, but for php" when it went into public beta in late November.

Most results I'd seen came from small sample projects. So I ran Pun 0.4.4 on a copy of Prompt Optimizer, a production Laravel 13 app with about 440 PHP files of its own and 944 tests, next to the tools it wants to replace. I timed everything, diffed the output and ran the test suite on both vendor/ folders.

Formatting is a clear win. Installs are faster once the cache is warm. The analyser is the part I wouldn't swap yet.

What I tested

The app. A copy of Prompt Optimizer at Laravel 13.38, with about 440 PHP files and 49,000 lines outside vendor/ , and 179 packages inside it.

The machine.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.