Apache License 2.0

项目介绍

carthage-software/mago 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前获得 3.5k 个 Star、215 次 Fork。

仓库全名
carthage-software/mago
开源许可证
Apache License 2.0
Star 数
3.5k
Fork 数
215
未关闭 Issue
145

README 摘要

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. Table of Contents Installation Getting Started Features Our Sponsors Contributing Inspiration & Acknowledgements License…

完整内容见 GitHub 原始 README 或本页 。

常见问题

mago 用什么语言开发?

主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前有 3.5k 个 Star。

mago 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 mago 的源码?

可以直接克隆仓库:git clone https://github.com/carthage-software/mago.git;安装与运行步骤见仓库 README。

mago 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 145 个未关闭 Issue;Star 数为 3.5k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

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

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
3993
价值分
2186
活跃状态
活跃

语言占比

C++
Dockerfile
Just
Nix
PHP
Rust
Shell
Twig

Release

README

Mago Banner

An extremely fast PHP linter, formatter, and static analyzer, written in Rust.

CI Status CD Status CodeQL CodSpeed Crates.io Latest Stable Version for PHP Total Composer Downloads License

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.

Table of Contents

Installation

The most common way to install Mago on macOS and Linux is by using our shell script:

curl --proto '=https' --tlsv1.2 -sSf https://carthage.software/mago.sh | bash

To install a specific version:

curl --proto '=https' --tlsv1.2 -sSf https://carthage.software/mago.sh | bash -s -- --version=1.59.0

For all other installation methods, including Homebrew, Composer, and Cargo, please refer to our official Installation Guide.

Getting Started

To get started with Mago and learn how to configure your project, please visit our Getting Started Guide in the official documentation.

Features

  • ⚡️ Extremely Fast: Built in Rust for maximum performance.
  • 🔍 Lint: Identify issues in your codebase with customizable rules.
  • 🔬 Static Analysis: Perform deep analysis of your codebase to catch potential type errors and bugs.
  • 🛠️ Automated Fixes: Apply fixes for many lint issues automatically.
  • 📜 Formatting: Automatically format your code to adhere to best practices and style guides.
  • 🧠 Semantic Checks: Ensure code correctness with robust semantic analysis.
  • 🌳 CST Visualization: Explore your code’s structure with Concrete Syntax Tree (CST) parsing.

Our Sponsors

CHECK24

Sergey ProtkoJason R. McNeilVincent Berset

Let's BookHeySoraBohuslav ŠimekTicketSwap

See all sponsors

Contributing

Mago is a community-driven project, and we welcome contributions! Whether you’re reporting bugs, suggesting features, writing documentation, or submitting code, your help is valued.

Inspiration & Acknowledgements

Mago stands on the shoulders of giants. Our design and functionality are heavily inspired by pioneering tools in both the Rust and PHP ecosystems.

Inspirations:

  • Clippy: For its comprehensive linting approach.
  • OXC: A major inspiration for building a high-performance toolchain in Rust.
  • Hakana: For its deep static analysis capabilities.

Acknowledgements:

We deeply respect the foundational work of tools like PHP-CS-Fixer, Psalm, PHPStan, and PHP_CodeSniffer. While Mago aims to offer a unified and faster alternative, these tools paved the way for modern PHP development.

License

Mago is dual-licensed under your choice of the following:

评论

暂无评论