# php architect Educational

Hosted by: Scott Keck-Warren

Web version: https://unleashedpodcasts.com/shows/2/php-architect-educational

## Episodes

### [Stop waiting on PHPStan: Mago cuts static analysis time by 4x](https://unleashedpodcasts.com/shows/2/episodes/222258f7-f7b6-4d25-b3e2-795a7239edfc.md)

Published: 2026-07-29

Hosts: Scott Keck-Warren

Mago is a static analysis toolchain for PHP written in Rust instead of PHP, and it's fast. In this video I cover installing Mago, linting your code, analyzing for bugs, and formatting your codebase, plus how it stacks up against PHPStan and Psalm on a real 134k-line project.

Timestamps and topics:

* What Mago is and why Rust makes it fast
* Installing Mago (curl script, Homebrew, Composer, Docker, WinGet)
* Setting up mago.toml with mago init
* Linting your code with mago lint and auto-fixing issues
* Catching real bugs with mago analyze
* Formatting your codebase with mago fmt
* Speed comparison: Mago vs PHPStan and PHP_CodeSniffer
* Gotchas to know before you adopt it

Mago site: https://mago.carthage.software/

I'm currently testing Mago as a "yes and" stage alongside PHPStan and Psalm rather than a full replacement, since some rules don't have equivalents yet. Let me know in the comments what static analysis tool you're using and how slow your CI is because of it.

If this video helped you, like it and share it with a developer on your team who's tired of waiting on builds.

#PHP #StaticAnalysis #Rust #PHPStan #Mago #WebDevelopment

00:00 Introduction
01:22 What Is Mago?
01:50 Installing Mago
02:37 Setting Up Your Config
03:18 Linting Your Code
04:34 Analyzing for Bugs
05:26 Formatting Your Code
05:48 About That Speed
06:24 Fitting It Into Your Workflow
06:58 Gotchas
07:38 What You Need To Know
08:04 Outro

Links: 
Our Discord - https://discord.gg/aMTxunVx
Buy our shirts - https://store.phparch.com/products/community-corner-podcast-t-shirt

Scott's Social Media:
Website - https://scott.keck-warren.com/
Bluesky - https://bsky.app/profile/scottkeckwarren.bsky.social
LinkedIn - https://www.linkedin.com/in/scott-keck-warren-91689810/
Mastodon - https://phpc.social/@scottkeckwarren


PHP Architect Social Media:

X: https://x.com/phparch
Mastodon: https://phparch.social/@phparch
Bluesky: https://bsky.app/profile/phparch.com
Discord: https://discord.phparch.com

Subscribe to our magazine: https://www.phparch.com/subscribe/

Thanks to our Partners:

Displace - Infrastructure Management, Simplified
https://displace.tech/

PHPScore - Put Your Technical Debt on Autopay
https://phpscore.com/

CodeRabbit - Cut code review time & bugs in half instantly with CodeRabbit.
https://www.coderabbit.ai/

Epidemic Sound
https://www.epidemicsound.com/

Get PHP Architect Merch at our Store https://store.phparch.com/

---

### [How to use git rebase without breaking your team's history](https://unleashedpodcasts.com/shows/2/episodes/ca75e9f5-7852-40c1-88db-2bcd8adf3d3a.md)

Scheduled: 2026-06-10

Hosts: Scott Keck-Warren
