Testing Mago as an alternative to PHPStan
supun.ioΒ·3d
🌊Glommio
Preview
Report Post

I discovered Mago, a PHP toolchain written in Rust, on Reddit a couple of days back. It recently published version 1.0. I am testing it primarily as a candidate to replace PHPStan.

PHPStan has been incredible in terms of the features it provide. But, it’s slow. Having experienced a near-instant DX with typescript, PHPStan’s speed has always been a problem. In Hyvor Relay repo, which has about 3000 PHP source and test files, it takes about 5 seconds to re-analyze after a few changes. This makes development feedback loop slow that in most cases, we just write code, push it to CI, and finally fix the PHPStan issues later. Also, the IDE intergations are not great without a LSP.

I’m looking for two things in Mago:

It must support all the PHPSta…

Similar Posts

Loading similar posts...