Mago 1.65.0
Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.
- Open source
- Windows
- Updated Dec 5, 2026
Official version from Carthage SoftwareDownloaded from the publisher’s site · Official website
- No download manager
- No bundled offers
- 0Views
- 0Downloads
- 0Likes
- Software Rank#23in Developer tools
Screenshots

About Mago
An extremely fast PHP linter, formatter, and static analyzer, written in Rust.
Mago is a comprehensive toolchain for PHP that helps developers write better code. Inspired by the Rust ecosystem, Mago brings speed, reliability, and an exceptional developer experience to PHP projects of all sizes.
The most common way to install Mago on macOS and Linux is by using our shell script:
For all other installation methods, including Homebrew, Composer, and Cargo, please refer to our official Installation Guide.
To get started with Mago and learn how to configure your project, please visit our Getting Started Guide in the official documentation.
What’s new in 1.65.0
## ✨ Features
### Codex
• **`@var` on parameters**:reads a `@var` docblock right before a parameter as the parameter's type. (#2779, #2963, e3c3cf3)
```php
array_map(static fn (/** @var array{email:string} */ array $row): string => $row['email'], $rows);
```
A `@param` tag on the function still wins.
### Prelude
• **PHP 8.6 stream errors**:adds `StreamErrorMode`, `StreamException`, `stream_last_errors()` and more. (#2966, #2967, 1fd0ed3)
• **PHP 8.6 polling**:adds the polling API, such as `Io\Poll\Context` and `StreamPollHandle`. (#2968, #2969, dc48b98)
• **PHP 8.6 URI additions**:adds `UriBuilder`, `UrlBuilder`, `getHostType()`, `url_percent_encode()` and more. (#2970, #2971, b024f30)
## 🐛 Bug Fixes
### Analyzer
#### Control Flow
• **`switch` fall-through**:a case reached both directly and from the case above keeps what each path knows. (cf11e62)
• **Never-matching `case` labels**:reports one at any place in a group of labels that share a body. (981520c)
• **Repeated `match` arms**:reports an arm as unreachable when an earlier arm already matches its string. (a8e2a1a)
• **`try` and `catch`**:after a `catch` that falls through, forgets what the `try` body proved before a `throw`. (425be40)
• **Long `&&` and `||` chains**:use less stack, so very long chains no longer overflow it. (78abdaa)
• **`yield from`**:accepts a generator whose send type is `void` in any generator. (e6595d0)
#### Loops
• **Always-entered loops**:variables that a `while (true)` or `do`-`while` body defines stay defined after an outer `try`. (b4eae4b)
• **`++` after an assignment**:`$i = 0; $i++;` in a loop body makes `$i` exactly `1`, not `int`. (bbf0c74)
#### Narrowing
• **`===` on typed values**:narrows both sides, so after `$a === $b` with `A $a` and `B $b`, `$b` is an `A` too. (1103042)
• **Identical arrays**:after `$x === $y` on arrays of unrelated types, both may still be empty. (54d7544)
• **Loose `bool` comparisons**:`is_null($s) == false`, or a comparison with a `false` constant such as `Flag::OFF`, narrows. (a075c8a)
• **`&&` chains**:forget a property narrowed before a call in the chain that may change it. (d220ab1)
• **Calls on union types**:`$o->is($v)` on `A|B` narrows `$v` only by what holds whichever method runs, not by `A::is()` alone. (5cd2217)
• **Named arguments**:`is_a()`, `is_subclass_of()`, `array_key_exists()` and similar functions narrow with named arguments. (38f71fb)
• **`!=` and numeric strings**:after `$a != '1'`, `$a` is no longer `'01'` or `'1.0'`, which PHP treats as equal to `'1'`. (4714226)
• **`is_scalar()` on callables**:narrows a `callable` to a `callable-string`. (ea3564b)
• **`!is_scalar()` on callables**:removes the `callable-string` part
Specifications
- Name
- Mago
- Version
- 1.65.0
- Released
- December 5, 2026
- Publisher
- Carthage Software
- Platform
- Windows
- Price
- Open source
- Category
- Developer tools
- On FamousWhy since
- December 2026
- Download from
- The publisher’s site
in Developer tools for Windows
out of 401 programsHow the score is made
Famous Software Rank compares Mago with every program on FamousWhy, from 0 to 100. Most of it comes from visitors: downloads, visits, likes, followers and boosts. It is recalculated every night. How Famous Software Rank works
- Bronze0–19
- Silver20–39
- Gold40–59
- Platinum60–79
- Diamond80–100
Alternatives to Mago
-
17BronzeACS 2.27.0
Admin Config Service CLI for managing splunk cloud stacks.
-
17Bronzeagentty 0.9.72
Blazing-fast Claude in your terminal — a C++26 alternative to claude-code.
-
17BronzeALTRun 2026.12.02
Lightweight, open-source Alfred-style launcher for Windows.
-
17BronzeBuf 1.76.0
The best way to work with Protocol Buffers.
-
17BronzeCodeArts Agent 26.11.400
The Huawei Cloud CodeArts Agent AI coding IDE.
Get more downloads for Mago
Free badges, a live rank widget and share links, for the publisher and for everyone who likes the program. Each one links back here, and every visitor it brings counts towards the Famous Software Rank.
Show the live Famous Software Rank
- 👀More exposureEvery visitor the widget sends to your FamousWhy page raises the Famous Software Rank and moves the program up the category lists and the top 10.
- ⬇️More downloads and installsA higher place puts the program in front of more people who came to install something, every day.
- 👥Your visitors bring new usersFans who click the widget can like and boost the program, and every boost lifts it in front of new people.
Share Mago
Post the page on your social accounts or in your newsletter. Visitors who arrive through these links count towards the Famous Software Rank too.
Questions about Mago
Is Mago free?
Yes. Mago is open source and free to use.
Is it safe to download Mago?
You get the official version released by Carthage Software. FamousWhy doesn’t repackage it or add download managers, toolbars or other offers.
What is the latest version of Mago?
The latest version we know of is 1.65.0, released on December 5, 2026.