homebrew-php
2,878
Stars
182
Forks
14
Watchers
0
Open Issues
MIT
许可证
Ruby
语言
2019-12-20
创建时间
2026-11-11
最近更新
项目能做什么
支持 PHP 5.6 到 8.7 的 Homebrew tap,其中 8.6 和 8.7 版本每日构建。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
<a href="https://github.com/shivammathur/homebrew-php" target="_blank">
<img src="https://repository-images.githubusercontent.com/229187949/f140f880-4c25-11eb-8105-aefec9dc7c66" alt="Homebrew Tap for PHP" width="560">
</a>
</p>
<h1 align="center">brew tap shivammathur/php</h1>
<p align="center">
<a href="https://github.com/shivammathur/homebrew-php" title="Homebrew tap to install PHP: Builds">
<img alt="Build status" src="https://github.com/shivammathur/homebrew-php/workflows/Update%20and%20Build%20Formulae/badge.svg">
</a>
<a href="https://github.com/shivammathur/homebrew-php" title="Homebrew tap to install PHP: Tests">
<img alt="Test status" src="https://github.com/shivammathur/homebrew-php/actions/workflows/test.yml/badge.svg">
</a>
<a href="https://github.com/shivammathur/homebrew-php/blob/main/LICENSE" title="license">
<img alt="LICENSE" src="https://img.shields.io/badge/license-MIT-428f7e.svg?logo=open%20source%20initiative&logoColor=white&labelColor=555555">
</a>
<a href="https://github.com/shivammathur/homebrew-php/tree/main/Formula" title="Formulae for PHP versions">
<img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.6%20to%208.7-777bb3.svg?logo=php&logoColor=white&labelColor=555555">
</a>
</p>
<p align="center">
<a href="https://github.com/shivammathur/homebrew-php#os-support" title="Linux x86_64 supported">
<img alt="Linux architectures supported" src="https://img.shields.io/badge/Linux-x86__64%20-f6ab01?logo=linux&logoColor=555555&labelColor=ffffff">
</a>
<a href="https://github.com/shivammathur/homebrew-php#os-support" title="Apple M1 arm64 supported">
<img alt="macOS architectures supported" src="https://img.shields.io/badge/macOS-Apple%20arm64%20-c0476d?logo=apple&logoColor=555555&labelColor=ffffff">
</a>
</p>
## PHP Support
| PHP Version | NTS Formula | Debug Formula | ZTS Formula | Debug ZTS Formula |
|---------------|--------------------|--------------------------------|----------------------------|----------------------------------------|
| PHP 5.6 | `php@5.6` | `php@5.6-debug` | `php@5.6-zts` | `php@5.6-debug-zts` |
| PHP 7.0 | `php@7.0` | `php@7.0-debug` | `php@7.0-zts` | `php@7.0-debug-zts` |
| PHP 7.1 | `php@7.1` | `php@7.1-debug` | `php@7.1-zts` | `php@7.1-debug-zts` |
| PHP 7.2 | `php@7.2` | `php@7.2-debug` | `php@7.2-zts` | `php@7.2-debug-zts` |
| PHP 7.3 | `php@7.3` | `php@7.3-debug` | `php@7.3-zts` | `php@7.3-debug-zts` |
| PHP 7.4 | `php@7.4` | `php@7.4-debug` | `php@7.4-zts` | `php@7.4-debug-zts`
阅读完整原文
商业机会分析 AI 生成
PHP 本地多版本开发环境管理 GUI 工具 (Mac 菜单栏工具)
| 产品构想 | 基于现有的 homebrew-php 打造类似 Herd 或 DBngin 的轻量级 macOS 菜单栏客户端,一键切换 PHP 运行时、ZTS 状态、管理 php.ini 及扩展。 |
| 核心功能 | 一键调用 brew tap 安装指定 PHP 版本;一键在终端/Web 服务器间切换版本;快捷编辑 php.ini;集成 Xdebug/Zend 调试器开关。 |
| 目标用户 | macOS 本机开发 PHP 应用或拓展的个人开发者和外包团队。 |
| 难度/周期 | 中等 · 1-2 个月 · 成本:极低(仅需 Apple Developer 开发者账号年费 99 美元)。 |
| 收费模式 | 独立商业软件售卖(买断制或小额年付,如 $19-$29)。 |
| 竞争风险 | 市场上存在 Laravel Herd、MAMP、Docker 等成熟替代品,竞争激烈。 |
| 依据 | AI推测 |
企业遗留 PHP (5.6/7.x) 安全补丁构建与私有 Tap 订阅
| 产品构想 | 针对必须运行在 macOS/Linux ARM 上的企业遗留旧版本 PHP,提供集成高危 CVE 补丁的定制版编译 Formulae 和私有 Tap 维护支持服务。 |
| 核心功能 | 定期回流安全补丁的旧版 PHP 构建;企业私有托管 Tap 源;高响应 SLA 的编译失败故障排除服务。 |
| 目标用户 | 维护老旧电商、政企或金融系统且暂无法重构的研发团队及中小型企业。 |
| 难度/周期 | 较高 · 2-3 个月 · 成本:持续的构建测试机器与安全漏洞追踪人工成本。 |
| 收费模式 | 企业级技术订阅(SaaS/Support 模式,如 $99-$499/月)。 |
| 竞争风险 | 旧版本代码打补丁维护成本极高,企业数量有限且合规审核严格。 |
| 依据 | 尚需验证的假设 |
面向开发者的 GitHub Sponsors 与专属优先构建权益
| 产品构想 | 依靠项目本身高活跃度与不可替代性,建立赞助者层级,提供定制构建 Formula 支持及 GitHub Actions 调试答疑。 |
| 核心功能 | 优先处理特定扩展编译错误;Nightly 构建故障第一响应;企业赞助者 Logo 挂载于 README 及 文档。 |
| 目标用户 | 重度依赖该 Tap 的独立开发者、PHP 扩展开源作者、咨询顾问。 |
| 难度/周期 | 极低 · 1 周 · 成本:几乎为零。 |
| 收费模式 | GitHub Sponsors 订阅(每月 $5 至 $100 不等)。 |
| 竞争风险 | 被动赞助转化率极低,难以形成稳定的全职收入。 |
| 依据 | 已验证事实 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| ventoy/Ventoy | 中文介绍暂未生成 A new bootable USB solution. |
80,819 | C |
| simdjson/simdjson | 中文介绍暂未生成 Parsing gigabytes of JSON per second : used by Facebook/Meta |
24,563 | C++ |
| gojue/ecapture | 中文介绍暂未生成 Capture SSL/TLS plaintext with eBPF—no MITM proxy or custom |
15,536 | C |
| rust-embedded/rust-raspberrypi-OS-tutorials | 中文介绍暂未生成 :books: Learn to write an embedded OS in Rust :crab: |
14,747 | Rust |
| unicorn-engine/unicorn | 中文介绍暂未生成 Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sp |
9,563 | C |
| henrypp/simplewall | 中文介绍暂未生成 Simple tool to configure Windows Filtering Platform (WFP) wh |
9,292 | C |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2019-12-20,近 30 天仍在推送 |
| 社区活跃 | Star 2,878 / Fork 182 / Issue 0(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/shivammathur/homebrew-php.git cd homebrew-php # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。