Skip to content
🎂 Who was born today → RO · famouswhy.roEN
Follow

Mago 1.65.0

by Carthage Software

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
Download 1.65.0

Official version from Carthage SoftwareDownloaded from the publisher’s site · Official website

  • No download manager
  • No bundled offers

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

Mago 1.65.0 reads a `@var` docblock on a parameter as its type, adds the PHP 8.6 stream errors, polling and URI APIs, and fixes 74 bugs, most of them in the analyzer. It also analyzes long `elseif` chains and `match` expressions faster, and speeds up `mago guard`.

## ✨ 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
Platform
Windows
Price
Open source
Category
Developer tools
On FamousWhy since
December 2026
Download from
The publisher’s site
#23
Bronze level

in Developer tools for Windows

out of 401 programs
Like it here and boost it on the dial to push Mago up the chart.
How 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

  1. Bronze0–19
  2. Silver20–39
  3. Gold40–59
  4. Platinum60–79
  5. Diamond80–100
  • Downloads0
    counts 20%
  • Visits0
    counts 10%
  • Likes0
    counts 10%
  • Followers0
    counts 10%
  • Boosts0 in 30 days
    counts 25%
  • Visits from widgets and shares0 in 90 days
    counts 10%
  • Editor ratingNot reviewed yet
    counts 5%
  • Up to dateDec 2026
    counts 5%
  • AwardNone yet
    counts 5%

Alternatives to Mago

  • ACS 2.27.0

    Admin Config Service CLI for managing splunk cloud stacks.

    Free Windows Splunk updated Dec 3, 2026
    17Bronze
  • agentty 0.9.72

    Blazing-fast Claude in your terminal — a C++26 alternative to claude-code.

    Open source Windows agentty updated Dec 3, 2026
    17Bronze
  • ALTRun 2026.12.02

    Lightweight, open-source Alfred-style launcher for Windows.

    Open source Windows zhugecaomao updated Dec 2, 2026
    17Bronze
  • Buf 1.76.0

    The best way to work with Protocol Buffers.

    Open source Windows bufbuild updated Dec 3, 2026
    17Bronze
  • CodeArts Agent 26.11.400

    The Huawei Cloud CodeArts Agent AI coding IDE.

    Paid Windows Huawei updated Dec 4, 2026
    17Bronze
All developer tools programs for Windows

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.
Mago Famous Software Rank on FamousWhy
Shape
Size
Paste it in your site’s HTML, where you want the image to appear.

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.

All widgets and share cards · Why it helps your program

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.