Mago

Carthage Software·CarthageSoftware.Mago

Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code.

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.

winget install --id CarthageSoftware.Mago --exact --source winget

Latest 1.42.0·June 27, 2026

Release Notes

Mago 1.42.0 A small release adding a prefer-early-return linter rule, fixing Windows self-update, and clearing analyzer and PHPDoc false positives around is_a(), nullable destructuring, and @param on promoted properties. ✨ Features Linter

  • prefer-early-return: new rule suggesting early returns to reduce nesting in functions. (#2031, e523ab1) πŸ› Bug Fixes Analyzer
  • is_a() with allow_string: a string subject no longer triggers a false impossible-type-comparison. (db64917)
  • Nullable destructuring: destructuring T|null keeps element types (plus null) instead of widening to mixed. (643a037) PHPDoc Syntax
  • @param on promoted properties: @param T with no variable is allowed and types the property like @var. (8b9af32) CLI
  • Windows self-update: extracts the .exe-suffixed binary from the archive, fixing "file not found". (805a1c3) πŸ™ Thank You Contributors A huge thank you to everyone who contributed code to this release:
  • @Bleksak: #2031 Full Changelog: 1.41.0...1.42.0

Installer type: zip

ArchitectureScopeDownloadSHA256
x64β€”Download1CA671B0EE6EE166BCE26B3C4B9D6DB2D84F69FE49165E9CDB09B18DBCEF1168

Details

Homepage
https://mago.carthage.software/
License
Apache-2.0
Publisher
Carthage Software
Support
https://github.com/carthage-software/mago/issues
Moniker
mago

Tags

astdevformattinglintphpsemantic-checksstatic-analysis

Older versions (9)

1.40.2
ArchitectureScopeDownloadSHA256
x64β€”Download4C6F5D0915E342B1AA9A4EBA90A197058C4F5DE3D7E02D911AFFD6AA49B15579
1.40.1
ArchitectureScopeDownloadSHA256
x64β€”Download8DC86A8C5366547B10233ADF1157CC299A0603A2631FCB21FCE858EE15F2EDCC
1.40.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadD45C4674707AB4952A463A22B2A5E2AB08A11CFC2B31E2F97402CA78A1A478E8
1.30.0
ArchitectureScopeDownloadSHA256
x64β€”Download2DFD242DA7CFCE08275197119F206C636EE07C660D55A66A1B4804E56C820065
1.29.0
ArchitectureScopeDownloadSHA256
x64β€”Download4D5CD72917A8B367527C00BCE24CA032873C1C6ADDEE821C8C3D28FA4F71727A
1.28.0
ArchitectureScopeDownloadSHA256
x64β€”DownloadA67E597ED0DECAFEB02EDDAE9EDA24AA9C59A3BCD69CCE49B73EE016626BC62C
1.27.1
ArchitectureScopeDownloadSHA256
x64β€”Download96bcaf3362907cb9b2e1879f3beb0234a4951ded9875872244b6b175d06ba699
1.27.0
ArchitectureScopeDownloadSHA256
x64β€”Download6428fb85baeb3442fbf55c6e6db9a803e9e91501e0df6006b0f5017d6509c1e3
1.26.0
ArchitectureScopeDownloadSHA256
x64β€”Downloadf4b080030968d5b262357eda3bbe5ad5534c9f9a59a9697172c9e17b6472c3cc