ziadoz/awesome-php
GitHub: ziadoz/awesome-php
一份由社区精心维护的 PHP 生态系统资源索引,帮助开发者、安全研究人员和运维工程师快速发现并选择合适的 PHP 库与工具。
Stars: 32499 | Forks: 5140
# 极佳的 PHP [](https://github.com/sindresorhus/awesome)
一份精心策划的极佳 PHP 库、资源和实用工具列表。
## 贡献与协作
详情请参阅 [CONTRIBUTING](https://github.com/ziadoz/awesome-php/blob/master/CONTRIBUTING.md)、[CODE-OF-CONDUCT](https://github.com/ziadoz/awesome-php/blob/master/CODE-OF-CONDUCT.md) 和 [COLLABORATING](https://github.com/ziadoz/awesome-php/blob/master/COLLABORATING.md)。
## 目录
- [极佳的 PHP](#awesome-php)
- [Composer 仓库](#composer-repositories)
- [依赖管理](#dependency-management)
- [依赖管理扩展](#dependency-management-extras)
- [框架](#frameworks)
- [框架扩展](#framework-extras)
- [内容管理系统](#content-management-systems-cms)
- [组件](#components)
- [微框架](#micro-frameworks)
- [微框架扩展](#micro-framework-extras)
- [路由](#routers)
- [模板引擎](#templating)
- [静态站点生成器](#static-site-generators)
- [HTTP](#http)
- [抓取](#scraping)
- [中间件](#middlewares)
- [URL](#url)
- [电子邮件](#email)
- [文件](#files)
- [流](#streams)
- [依赖注入](#dependency-injection)
- [图像处理](#imagery)
- [测试](#testing)
- [持续集成](#continuous-integration)
- [文档](#documentation)
- [安全](#security)
- [密码](#passwords)
- [代码分析](#code-analysis)
- [代码质量](#code-quality)
- [静态分析](#static-analysis)
- [架构](#architectural)
- [调试与分析](#debugging-and-profiling)
- [错误跟踪与监控服务](#error-tracking-and-monitoring-services)
- [构建工具](#build-tools)
- [任务运行器](#task-runners)
- [导航](#navigation)
- [资产管理](#asset-management)
- [地理定位](#geolocation)
- [日期与时间](#date-and-time)
- [事件](#event)
- [日志](#logging)
- [电子商务](#e-commerce)
- [PDF](#pdf)
- [Office](#office)
- [数据库](#database)
- [数据迁移](#migrations)
- [NoSQL](#nosql)
- [队列](#queue)
- [搜索](#search)
- [命令行](#command-line)
- [认证与授权](#authentication-and-authorization)
- [标记与 CSS](#markup-and-css)
- [JSON](#json)
- [字符串](#strings)
- [数字](#numbers)
- [过滤、清理与验证](#filtering-sanitizing-and-validation)
- [API](#api)
- [缓存与锁](#caching-and-locking)
- [数据结构与存储](#data-structure-and-storage)
- [通知](#notifications)
- [部署](#deployment)
- [国际化与本地化](#internationalisation-and-localisation)
- [Serverless](#serverless)
- [配置](#configuration)
- [LLMs](#llms)
- [第三方 API](#third-party-apis)
- [扩展](#extensions)
- [杂项](#miscellaneous)
- [软件](#software)
- [PHP 安装](#php-installation)
- [开发环境](#development-environment)
- [虚拟机](#virtual-machines)
- [文本编辑器和 IDE](#text-editors-and-ides)
- [Web 应用程序](#web-applications)
- [基础设施](#infrastructure)
- [资源](#resources)
- [PHP 网站](#php-websites)
- [PHP 书籍](#php-books)
- [PHP 视频](#php-videos)
- [PHP 会议](#php-conferences)
- [PHP 播客](#php-podcasts)
- [PHP 时讯](#php-newsletters)
- [PHP 阅读](#php-reading)
- [PHP 内部机制阅读](#php-internals-reading)
### Composer 仓库
*Composer 仓库。*
* [Firegento](https://packages.firegento.com/) - Magento 模块 Composer 仓库。
* [Packagist](https://packagist.org/) - PHP 包仓库。
* [Packalyst](https://packalyst.com/) - Laravel 包仓库。
* [Private Packagist](https://packagist.com/) - 作为服务的 PHP Composer 包存档。
* [WordPress Packagist](https://wpackagist.org/) - 使用 Composer 管理你的插件。
### 依赖管理
*用于依赖和包管理的库。*
* [Composer](https://getcomposer.org/) - 包和依赖管理器。
* [Composer Installers](https://github.com/composer/installers) - 多框架 Composer 库安装器。
* [Phive](https://phar.io/) - PHAR 管理器。
* [Pickle](https://github.com/FriendsOfPHP/pickle) - PHP 扩展安装器。
* [Pie](https://github.com/php/pie) - 官方的 PHP 扩展安装器。
### 依赖管理扩展
*与依赖管理相关的扩展。*
* [Composer Merge Plugin](https://github.com/wikimedia/composer-merge-plugin) - 用于合并多个 `composer.json` 文件的 Composer 插件。
* [Composer Normalize](https://github.com/ergebnis/composer-normalize) - 用于规范化 `composer.json` 文件的插件。
* [Composer Patches](https://github.com/cweagans/composer-patches) - 用于应用补丁的 Composer 插件。
* [Composer Prefer Lowest Validator](https://github.com/dereuromark/composer-prefer-lowest) - 用于检查是否可以安装和测试最低依赖版本的插件。
* [Composer Require Checker](https://github.com/maglnet/ComposerRequireChecker) - 用于分析 Composer 依赖并验证包源中没有使用未知符号的 CLI 工具。
* [Composer Unused](https://github.com/composer-unused/composer-unused) - 用于扫描未使用 Composer 包的 CLI 工具。
* [Repman](https://repman.io) - 私有 PHP 包仓库管理器和 Packagist 代理。
* [Satis](https://github.com/composer/satis) - 静态 Composer 仓库生成器。
### 框架
*Web 开发框架。*
* [CakePHP](https://cakephp.org/) - 快速应用开发框架。
* [CodeIgniter](https://codeigniter.com/) - 占用空间极小的强大 PHP 框架。
* [Ecotone](https://docs.ecotone.tech/) - 基于 DDD、CQRS 和 Event Sourcing 架构原则的 PHP 服务总线。
* [Laminas](https://getlaminas.org/) - 由独立组件组成的框架(前身是 Zend Framework)。
* [Laravel](https://laravel.com/) - 具有表现力、优雅语法的 Web 应用程序框架。
* [Nette](https://nette.org) - 由成熟组件组成的 Web 框架。
* [Phalcon](https://phalcon.io/en-us) - 作为 C 扩展实现的框架。
* [Spiral](https://spiral.dev/) - 高性能的 PHP/Go 框架。
* [Symfony](https://symfony.com/) - 一组可重用组件和一个 Web 框架。
* [Tempest](https://github.com/tempestphp/tempest-framework) - 一款不会碍事的框架。
* [Yii2](https://github.com/yiisoft/yii2/) - 快速、安全和高效的 Web 框架。
### 框架扩展
*与 Web 开发框架相关的扩展。*
* [CakePHP CRUD](https://github.com/friendsofcake/crud) - CakePHP 的快速应用开发 (RAD) 插件。
* [Filament PHP](https://filamentphp.com/) - 为 Laravel 打造的强大开源 UI 框架。
* [Inertia.js](https://inertiajs.com/) - 用于使用服务器端路由和控制器构建单页应用程序的适配器,无需单独的 API。
* [LaravelS](https://github.com/hhxsv5/laravel-s) - Laravel/Lumen 与 Swoole 之间的开箱即用适配器。
* [Livewire](https://livewire.laravel.com/) - 无需脱离 PHP 即可构建强大、动态的前端 UI。
### 内容管理系统 (CMS)
*用于管理数字内容的工具。*
* [Backdrop](https://backdropcms.org) - 面向中小型企业和非营利组织的 CMS(Drupal 的一个分支)。
* [Concrete5](https://www.concretecms.com/) - 面向仅具备极少技术技能用户的 CMS。
* [CraftCMS](https://github.com/craftcms/cms) - 灵活、用户友好的 CMS,用于在 Web 及其他领域创建自定义数字体验。
* [Drupal](https://new.drupal.org/home) - 企业级 CMS。
* [Grav](https://github.com/getgrav/grav) - 现代的纯文件 CMS。
* [Joomla](https://www.joomla.org/) - 另一个领先的 CMS。
* [Kirby](https://getkirby.com/) - 能适应任何项目的纯文件 CMS。
* [Magento](https://github.com/magento/magento2) - 广泛使用的开源电子商务平台。
* [Moodle](https://moodle.org/) - 开源学习平台。
* [OctoberCMS](https://octobercms.com/) - 基于 Laravel 构建的 CMS。
* [OpenMage](https://github.com/OpenMage/magento-lts) - 已停止维护 (EoL) 的 Magento 1 电子商务平台的分支。
* [Pico CMS](https://picocms.org/) - 轻量级纯文件 CMS。
* [Silverstripe](https://www.silverstripe.org/) - 简单、灵活且安全的 CMS。
* [Statamic](https://statamic.com/) - 基于 Laravel 构建的纯文件且基于 Git 的 CMS。
* [Sulu](https://sulu.io/) - 基于 Symfony 框架构建的、对用户和开发者友好的 CMS。
* [TYPO3](https://typo3.org) - 企业级 CMS。
* [WinterCMS](https://wintercms.com) - 由社区维护的 OctoberCMS 分支,基于 Laravel 构建。
* [WordPress](https://github.com/WordPress/WordPress) - 博客平台和 CMS。
### 组件
*来自 Web 开发框架和开发组的独立组件。*
* [Aura](https://auraphp.com/) - 相互之间以及与任何框架完全解耦的独立组件。
* [CakePHP Plugins](https://plugins.cakephp.org/) - CakePHP 插件目录。
* [Laminas Components](https://docs.laminas.dev/components/) - 组成 Laminas 框架的组件。
* [Laravel Components](https://github.com/illuminate) - Laravel 框架组件。
* [League of Extraordinary Packages](https://thephpleague.com/) - 一个 PHP 包开发组。
* [Spatie Open Source](https://spatie.be/open-source) - 开源 PHP 和 Laravel 包的集合。
* [Symfony Packages](https://symfony.com/packages) - 用于 PHP 应用程序的解耦库。
### 微框架
*微框架和路由器。*
* [Laravel Zero](https://laravel-zero.com) - 用于控制台应用程序的微框架。
* [Mezzio](https://getexpressive.org/) - Laminas 开发的微框架。
* [Minicli](https://github.com/minicli/minicli) - 用于构建以 CLI 为中心的 PHP 应用程序的极简、无依赖框架。
* [Silly](https://github.com/mnapoli/silly) - 用于 CLI 应用程序的微框架。
* [Slim](https://www.slimframework.com/) - 另一个简单的微框架。
### 微框架扩展
*与微框架和路由器相关的扩展。*
* [Slim Skeleton](https://github.com/slimphp/Slim-Skeleton) - Slim 的骨架。
* [Slim PHP View](https://github.com/slimphp/PHP-View) - Slim 的简单 PHP 渲染器。
### 路由
*用于处理应用程序路由的库。*
* [Aura.Router](https://github.com/auraphp/Aura.Router) - 功能齐全的路由库。
* [Fast Route](https://github.com/nikic/FastRoute) - 快速路由库。
* [Klein](https://github.com/klein/klein.php) - 灵活的路由器。
* [Route](https://github.com/thephpleague/route) - 基于 Fast Route 构建的路由库。
### 模板引擎
*用于模板化和词法分析的库和工具。*
* [Latte](https://latte.nette.org/) - 最安全且真正直观的 PHP 模板。
* [MtHaml](https://github.com/arnaud-lb/MtHaml) - HAML 模板语言的 PHP 实现。
* [Mustache](https://github.com/bobthecow/mustache.php) - Mustache 模板语言的 PHP 实现。
* [PHPTAL](https://phptal.org/) - [TAL](https://en.wikipedia.org/wiki/Template_Attribute_Language) 模板语言的 PHP 实现。
* [Plates](https://platesphp.com/) - 原生 PHP 模板库。
* [Smarty](https://www.smarty.net/) - 补充 PHP 的模板引擎。
* [Twig](https://twig.symfony.com/) - 综合性的模板语言。
### 静态站点生成器*用于预处理内容以生成网页的工具。*
* [Cecil](https://cecil.app/) - 简单而强大的内容驱动静态站点生成器。
* [Couscous](https://couscous.io) - 将 Markdown 文档转换为网站的工具。
* [Jigsaw](https://jigsaw.tighten.com/) - 使用 Laravel 的 Blade 构建的简单静态站点。
* [Sculpin](https://sculpin.io) - 将 Markdown 和 Twig 转换为静态 HTML 的工具。
### HTTP
*用于处理 HTTP 的库。*
* [Buzz](https://github.com/kriswallsmith/Buzz) - 另一个 HTTP 客户端。
* [Guzzle](https://github.com/guzzle/guzzle) - 综合性的 HTTP 客户端。
* [HTTPlug](https://httplug.io) - 没有绑定到特定实现的 HTTP 客户端抽象。
* [Nyholm PSR-7](https://github.com/Nyholm/psr7) - 超轻量级的 PSR-7 实现。非常严格且非常快速。
* [PHP VCR](https://php-vcr.github.io/) - 用于记录和重放 HTTP 请求的库。
* [Requests](https://github.com/WordPress/Requests) - 简单的 HTTP 库。
* [Retrofit](https://github.com/tebru/retrofit-php) - 用于简化 REST API 客户端创建的库。
* [Saloon](https://github.com/saloonphp/saloon) - 用于构建精美 API 集成和 SDK 的框架。
* [Symfony HTTP Client](https://github.com/symfony/http-client) - 用于同步或异步获取 HTTP 资源的组件。
* [Laminas Diactoros](https://github.com/laminas/laminas-diactoros) - PSR-7 HTTP 消息实现。
### 抓取
*用于抓取网站和检测爬虫的库。*
* [Chrome PHP](https://github.com/chrome-php/chrome) - 在 PHP 中操控无头 Chrome/Chromium 实例。
* [CrawlerDetect](https://github.com/JayBizzle/Crawler-Detect) - 通过 User-Agent 检测机器人/爬虫/蜘蛛的 PHP 类。
* [DiDOM](https://github.com/Imangazaliev/DiDOM) - 超快的 HTML 抓取和解析器。
* [Embed](https://github.com/php-embed/Embed) - 从任何 Web 服务或页面提取信息的工具。
* [PHP Spider](https://github.com/mvdbos/php-spider) - 可配置且可扩展的 PHP 网络蜘蛛。
* [Symfony Panther](https://github.com/symfony/panther) - 用于 PHP 和 Symfony 的浏览器测试和 Web 爬虫库。
### 中间件
*使用中间件构建应用程序的库。*
* [PSR-15 Middlewares](https://github.com/middlewares/psr15-middlewares) - 令人振奋的实用中间件集合。
* [Stack](https://github.com/stackphp) - 针对 Symfony 的可堆叠中间件库。
* [Laminas Stratigility](https://github.com/laminas/laminas-stratigility) - 基于 PSR-7 构建的 PHP 中间件。
### URL
*用于解析 URL 的库。*
* [PHP Domain Parser](https://github.com/jeremykendall/php-domain-parser) - 域名后缀解析库。
* [sabre/uri](https://github.com/sabre-io/uri) - 函数式 URI 操作库。
* [Uri](https://github.com/thephpleague/uri) - 另一个 URL 操作库。
### 电子邮件
*用于发送和解析电子邮件的库。*
* [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles) - 用于在电子邮件模板中内联 CSS 的库。
* [ddeboer/imap](https://github.com/ddeboer/imap) - 面向对象、经过完整测试的 PHP IMAP 库。
* [Email Reply Parser](https://github.com/willdurand/EmailReplyParser) - 电子邮件回复解析库。
* [Fetch](https://github.com/tedious/Fetch) - 一个 IMAP 库。
* [Mautic](https://github.com/mautic/mautic) - 电子邮件营销自动化。
* [PHPMailer](https://github.com/PHPMailer/PHPMailer) - 另一个邮件发送方案。
* [Stampie](https://github.com/Stampie/Stampie) - 用于 [SendGrid](https://www.twilio.com/en-us/sendgrid)、[PostMark](https://postmarkapp.com)、[MailGun](https://www.mailgun.com/) 和 [MailChimp](https://mailchimp.com/features/transactional-email/) 等邮件服务的库。
* [Symfony Mailer](https://github.com/symfony/mailer) - 用于创建和发送电子邮件的强大库。
### 文件
*用于文件操作和 MIME 类型检测的库。*
* [CSV](https://github.com/thephpleague/csv) - CSV 数据操作库。
* [Flysystem](https://github.com/thephpleague/Flysystem) - 本地和远程文件系统的抽象。
* [Gaufrette](https://github.com/KnpLabs/Gaufrette) - 文件系统抽象层。
* [PHP FFmpeg](https://github.com/PHP-FFmpeg/PHP-FFmpeg/) - [FFmpeg](https://www.ffmpeg.org/) 视频库的封装。
* [UnifiedArchive](https://github.com/wapmorgan/UnifiedArchive) - 统一的压缩包读写器。
* [Parquet](https://github.com/flow-php/parquet) - Parquet 文件格式的 PHP 实现。
### 流
*用于处理流的库。*
* [ByteStream](https://amphp.org/byte-stream) - 异步流抽象。
### 依赖注入
*实现依赖注入设计模式的库。*
* [Aura.Di](https://github.com/auraphp/Aura.Di) - 支持序列化的依赖注入容器,支持构造函数和 setter 注入、接口和 trait 感知、配置继承等。
* [Acclimate](https://github.com/AcclimateContainer/acclimate-container) - 依赖注入容器和服务定位器的通用接口。
* [Auryn](https://github.com/rdlowrey/Auryn) - 递归依赖注入器。
* [Container](https://github.com/thephpleague/container) - 另一个灵活的依赖注入容器。
* [Disco](https://github.com/bitExpert/disco) - 兼容 PSR-11、基于注解的依赖注入容器。
* [PHP-DI](https://php-di.org/) - 支持自动装配的依赖注入容器。
* [Pimple](https://github.com/silexphp/Pimple) - 微型的依赖注入容器。
* [Symfony DI](https://github.com/symfony/dependency-injection) - 依赖注入容器组件。
### 图像处理
*用于处理图像的库。*
* [Color Extractor](https://github.com/thephpleague/color-extractor) - 用于从图像中提取颜色的库。
* [Glide](https://github.com/thephpleague/glide) - 按需图像处理库。
* [Image Hash](https://github.com/jenssegers/imagehash) - 用于生成感知图像哈希的库。
* [Image Optimizer](https://github.com/psliwa/image-optimizer) - 用于优化图像的库。
* [Imagine](https://imagine.readthedocs.io/en/latest/index.html) - 图像处理库。
* [Intervention Image](https://github.com/Intervention/image) - 另一个图像处理库。
* [PHP Image Workshop](https://github.com/Sybio/ImageWorkshop) - 另一个图像处理库。
* [PHP QR Code](https://github.com/chillerlan/php-qrcode/) - 二维码生成器和读取器。
### 测试
*用于测试代码库和生成测试数据的库。*
* [Alice](https://github.com/nelmio/alice) - 具有表现力的固定数据生成库。
* [Behat](https://docs.behat.org/en/latest/) - 行为驱动开发 (BDD) 测试框架。
* [Codeception](https://github.com/Codeception/Codeception) - 全栈测试框架。
* [Faker](https://github.com/fakerphp/faker) - 假数据生成库。
* [Foundry](https://github.com/zenstruck/foundry) - 用于 Doctrine 的固定数据工厂生成库。
* [Infection](https://github.com/infection/infection) - 基于 AST 的 PHP 变异测试框架。
* [Kahlan](https://github.com/kahlan/kahlan) - 内置桩件、模拟和代码覆盖率支持的全栈单元/BDD 测试框架。
* [Mink](https://mink.behat.org/en/latest/) - Web 验收测试。
* [Mockery](https://github.com/mockery/mockery) - 用于测试的模拟对象库。
* [Nette Tester](https://github.com/nette/tester) - 高效且令人愉悦的并行单元测试框架。
* [ParaTest](https://github.com/paratestphp/paratest) - PHPUnit 的并行测试库。
* [Pest](https://pestphp.com/) - 注重简洁性的测试框架。
* [Phake](https://github.com/phake/phake) - 另一个用于测试的模拟对象库。
* [PHP-Mock](https://github.com/php-mock/php-mock) - 用于内置 PHP 函数(例如 time())的模拟库。
* [PHP MySQL Engine](https://github.com/vimeo/php-mysql-engine) - 纯 PHP 编写的 MySQL 引擎。
* [PHPSpec](https://github.com/phpspec/phpspec) - 按规格说明设计的单元测试库。
* [PHPT](https://php.github.io/php-src/miscellaneous/writing-tests.html) - PHP 自身使用的测试工具。
* [PHPUnit](https://github.com/sebastianbergmann/phpunit) - 单元测试框架。
* [PHPUnit Polyfills](https://github.com/Yoast/PHPUnit-Polyfills/) - 简化在多个 PHPUnit 版本上运行测试。
* [Prophecy](https://github.com/phpspec/prophecy) - 高度自以为是的模拟框架。
* [VFS Stream](https://github.com/bovigo/vfsStream) - 用于测试的虚拟文件系统流包装器。
### 持续集成
*用于持续集成的库和应用程序。*
* [CircleCI](https://circleci.com) - 持续集成平台。
* [GitLab CI](https://about.gitlab.com/solutions/continuous-integration/) - 持续集成平台。
* [Jenkins](https://www.jenkins.io/) - 具有 [PHP 支持](https://www.jenkins.io/solutions/php/)的持续集成平台。
* [SemaphoreCI](https://semaphore.io/) - 面向开源和私有项目的持续集成平台。
* [Travis CI](https://www.travis-ci.com) - 持续集成平台。
* [Setup PHP](https://github.com/shivammathur/setup-php) - 用于 PHP 的 GitHub Action。
### 文档
*用于生成项目文档的库。*
* [APIGen](https://github.com/apigen/apigen) - 另一个 API 文档生成器。
* [daux.io](https://github.com/dauxio/daux.io) - 使用 Markdown 文件的文档生成器。
* [phpDocumentor](https://phpdoc.org/) - 文档生成器。
* [phpDox](https://phpdox.net/) - 面向 PHP 项目的文档生成器(不局限于 API 文档)。
* [Scramble](https://github.com/dedoc/scramble) - 无需注解即可从代码中自动生成 OpenAPI 文档。
* [zircote/swagger-php](https://github.com/zircote/swagger-php) - 为你的 RESTful API 生成 OpenAPI 文档。
### 安全
*用于生成安全随机数、加密数据以及扫描和测试漏洞的库。*
* [AntiXSS](https://github.com/voku/anti-xss) - 试图通过黑名单防止跨站脚本攻击 的库。
* [Halite](https://paragonie.com/project/halite) - 使用 [libsodium](https://github.com/jedisct1/libsodium) 进行加密的简单库。
* [Optimus](https://github.com/jenssegers/optimus) - 基于 Knuth 乘法散列方法的 ID 混淆工具。
* [OWASP](https://owasp.org/) - 探索网络安全的世界。
* [PHPGGC](https://github.com/ambionics/phpggc) - PHP 反序列化 payload 库及其生成工具。
* [PHP Encryption](https://github.com/defuse/php-encryption) - 安全的 PHP 加密库。
* [PHPSecLib](https://github.com/phpseclib/phpseclib) - 纯 PHP 的安全通信库。
* [Roave Security Advisories](https://github.com/Roave/SecurityAdvisories) - 该包确保你的应用程序没有安装具有已知安全漏洞的依赖项。
* [Secure Headers](https://github.com/BePsvPT/secure-headers) - 向 HTTP 响应添加安全相关标头的包。
* [SQLMap](https://github.com/sqlmapproject/sqlmap) - 自动化的 SQL 注入和数据库接管工具。
* [Zap](https://github.com/zaproxy/zaproxy) - 集成式 Web 应用程序渗透测试工具。
### 密码
*用于处理和存储密码的库和工具。*
* [GenPhrase](https://github.com/timoh6/GenPhrase) - 用于生成安全随机密码短语的库。
* [Password Validator](https://github.com/jeremykendall/password-validator) - 用于验证和升级密码哈希的库。
* [Password-Generator](https://github.com/hackzilla/password-generator) - 用于生成随机密码的 PHP 库。
* [phpass](https://www.openwall.com/phpass/) - 便携式密码哈希框架。
* [Zxcvbn PHP](https://github.com/bjeavons/zxcvbn-php) - 基于 Zxcvbn JS 的现实 PHP 密码强度估算库。
### 代码分析
*用于分析、解析和操作代码库的库和工具。*
* [Better Reflection](https://github.com/Roave/BetterReflection) - 基于 AST 的反射库,允许分析和操作代码。
* [Bladestan](https://github.com/bladestan/bladestan) - 用于对 Blade 模板进行静态分析的 PHPStan 扩展。
* [Code Climate](https://codeclimate.com) - 自动化代码审查。
* [Editorconfig-Checker](https://github.com/editorconfig-checker/editorconfig-checker.php) - 用于验证文件是否符合 `.editorconfig` 规则的命令行工具。
* [GrumPHP](https://github.com/phpro/grumphp) - PHP 代码质量工具。
* [PHP AST Viewer](https://php-ast-viewer.com/) - 用于查看 PHP 代码抽象语法树的工具。
* [PHP Magic Number Detector](https://github.com/povils/phpmnd) - 检测代码中魔术数字的库。
* [PHP Parser]( ) - 另一个验证库。
* [Valinor](https://github.com/CuyZ/Valinor) - 用于映射到强类型值对象的库。
* [Volan](https://github.com/serkin/Volan) - 另一个简化的验证库。
### API
*用于开发 API 的库和 Web 工具。*
* [API Platform](https://api-platform.com) - 几分钟内即可公开支持 JSON-LD、Hydra 格式的超媒体 REST API。
* [Laminas API Tool Skeleton](https://github.com/laminas-api-tools/api-tools-skeleton) - 使用 Laminas 框架构建的 API 构建器。
* [HAL](https://github.com/blongden/hal) - 超文本应用语言 (HAL) 构建器库。
* [Hateoas](https://github.com/willdurand/Hateoas) - HATEOAS REST Web 服务库。
* [Jane](https://github.com/janephp/janephp/) - 带有验证支持的 OpenApi 客户端生成器。
* [Negotiation](https://github.com/willdurand/Negotiation) - 内容协商库。
* [Restler](https://github.com/Luracast/Restler) - 用于将 PHP 方法公开为 RESTful Web API 的轻量级框架。
* [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) - 从任何 WSDL 生成 PHP SDK 的包生成器。
### 缓存与锁
*用于缓存数据和获取锁的库。*
* [APIx Cache](https://github.com/apix/cache) - 专注于缓存标记和索引的、针对各种缓存后端的轻量级 PSR-6 缓存包装器。
* [CacheTool](https://github.com/gordalina/cachetool) - 从命令行清除 APC/opcode 缓存的工具。
* [CakePHP Cache](https://github.com/cakephp/cache) - 缓存库。
* [Doctrine Cache](https://github.com/doctrine/cache) - 缓存库。
* [Metaphore](https://github.com/sobstel/metaphore) - 使用信号量防止惊群效应 的缓存防御机制。
* [Stash](https://github.com/tedious/Stash) - 另一个缓存库。
* [Laminas Cache](https://github.com/laminas/laminas-cache) - 另一个缓存库。
* [Lock](https://github.com/php-lock/lock) - 提供独占执行的锁库。
### 数据结构与存储
*实现数据结构或存储技术的库。*
* [CakePHP Collection](https://github.com/cakephp/collection) - 简单的集合库。
* [Fractal](https://github.com/thephpleague/fractal) - 用于将复杂数据结构转换为 JSON 输出的库。
* [JsonMapper](https://github.com/cweiske/jsonmapper) - 将嵌套的 JSON 结构映射到 PHP 类的库。
* [JSON Machine](https://github.com/halaxa/json-machine) - 使用简单的 `foreach` 对庞大 JSON 进行迭代。
* [msgpack.php](https://github.com/rybakit/msgpack.php) - [MessagePack](https://msgpack.org/) 序列化格式的纯 PHP 实现。
* [Serializer](https://github.com/schmittjoh/serializer) - 用于序列化和反序列化数据的库。
* [YaLinqo](https://github.com/Athari/YaLinqo) - PHP 的又一个 LINQ to Objects 库。
* [Laminas Serializer](https://github.com/laminas/laminas-serializer) - 另一个用于序列化和反序列化数据的库。
### 通知
*用于处理通知软件的库。*
* [JoliNotif](https://github.com/jolicode/JoliNotif) - 跨平台的桌面通知库(支持 Growl、notify-send、toaster 等)。
### 部署
*用于项目部署的库。*
* [Deployer](https://github.com/deployphp/deployer) - 部署工具。
* [Envoy](https://github.com/laravel/envoy) - 使用 PHP 运行 SSH 任务的工具。
### 国际化与本地化
*用于国际化和本地化的库。*
* [Aura.Intl](https://github.com/auraphp/Aura.Intl) - 提供国际化 (I18N) 工具,特别是面向包、按区域设置的消息翻译。
* [CakePHP I18n](https://github.com/cakephp/i18n) - 日期和数字的消息翻译和本地化。
### Serverless
*帮助构建 Serverless Web 应用程序的库和工具。*
* [Bref](https://bref.sh/) - AWS Lambda 上的 Serverless PHP。
* [OpenWhisk](https://openwhisk.apache.org/) - 开源 Serverless 云平台。
* [Serverless Framework](https://www.serverless.com/framework) - 用于构建 Serverless 应用程序的开源框架。
* [Laravel Vapor](https://vapor.laravel.com/) - 由 AWS 提供支持的 Laravel Serverless 部署平台。
### 配置
*用于配置的库和工具。*
* [PHP Dotenv](https://github.com/vlucas/phpdotenv) - 从 `.env` 文件解析和加载环境变量。
* [Symfony Dotenv](https://github.com/symfony/dotenv) - 从 `.env` 文件解析和加载环境变量。
* [Toml](https://github.com/php-collective/toml) - 具有 AST 访问和错误恢复功能的 TOML 解析器和编码器。
### LLMs
*用于处理大型语言模型的库。*
* [Anthropic](https://github.com/mozex/anthropic-php) - Anthropic API 的 PHP 客户端,支持消息、流式传输、工具使用和批处理。
* [Anthropic for Laravel](https://github.com/mozex/anthropic-laravel) - Anthropic PHP 客户端的 Laravel 包装器,带有 Facades、配置发布和测试伪造。
* [Instructor for PHP](https://github.com/cognesy/instructor-php) - 使用 PHP 中的 LLM 生成结构化数据输出。
* [LLPhant](https://github.com/LLPhant/LLPhant) - 使用 OpenAI GPT 4 的全面 PHP 生成式 AI 框架。受 Langchain 启发。
* [OpenAI Client](https://github.com/openai-php/client) - OpenAI PHP 是一个由社区维护的强力 PHP API 客户端,允许你与 OpenAI API 交互。
* [OpenAI Client for Laravel](https://github.com/openai-php/laravel) - OpenAI PHP for Laravel 是一个强力 PHP API 客户端,允许你与 OpenAI API 交互。
* [PHP Mistral AI SDK](https://github.com/SoftCreatR/php-mistral-ai-sdk) - 强大且易于使用的 Mistral AI API PHP SDK,允许将高级 AI 驱动的功能无缝集成到你的 PHP 项目中。
### 第三方 API
*用于访问第三方 API 的库。*
* [Amazon Web Service SDK](https://github.com/aws/aws-sdk-php) - 官方的 PHP AWS SDK 库。
* [AsyncAWS](https://async-aws.com/) - 非官方的异步 PHP AWS SDK。
* [Campaign Monitor](https://campaignmonitor.github.io/createsend-php/) - 官方的 Campaign Monitor PHP 库。
* [Github](https://github.com/KnpLabs/php-github-api) - 用于与 Github API 交互的库。
* [Mailgun](https://github.com/mailgun/mailgun-php) - 官方的 Mailgun PHP API。
* [Stripe](https://github.com/stripe/stripe-php) - 官方的 Stripe PHP 库。
* [Twilio](https://github.com/twilio/twilio-php) - 官方的 Twilio PHP REST API。
### 扩展
*帮助构建 PHP 扩展的库。*
* [PHP CPP](https://www.php-cpp.com/) - 用于开发 PHP 扩展的 C++ 库。
* [Zephir](https://github.com/zephir-lang/zephir) - 介于 PHP 和 C++ 之间用于开发 PHP 扩展的编译语言。
### 杂项
*不属于上述类别的实用库或工具。*
* [Annotations](https://github.com/doctrine/annotations) - 注解库(Doctrine 的一部分)。
* [BotMan](https://github.com/botman/botman) - 框架无关的 PHP 聊天机器人构建库。
* [ClassPreloader](https://github.com/ClassPreloader/ClassPreloader) - 用于优化自动加载的库。
* [Ganesha](https://github.com/ackintosh/ganesha) - 断路器模式的 PHP 实现。
* [Hprose-PHP](https://github.com/hprose/hprose-php) - 跨语言的 RPC。
* [Laravel Serializable Closure](https://github.com/laravel/serializable-closure) - 允许序列化闭包的库。
* [noCAPTCHA](https://github.com/ARCANEDEV/noCAPTCHA) - Google 的 noCAPTCHA (reCAPTCHA) 辅助工具。
* [Pagerfanta](https://github.com/whiteoctober/Pagerfanta) - 分页库。
* [Safe](https://github.com/thecodingmachine/safe) - 所有 PHP 函数的重写版本,通过抛出异常代替返回 false。
# 软件
*用于创建开发环境的软件。*
### PHP 安装
*帮助在计算机上安装和管理 PHP 的工具。*
* [Brew PHP Switcher](https://github.com/philcook/brew-php-switcher) - Brew PHP 切换器。
* [Homebrew](https://brew.sh/) - macOS 的包管理器。
* [PHP Brew](https://github.com/phpbrew/phpbrew) - PHP 版本管理器和安装器。
* [PHP Build](https://github.com/php-build/php-build) - 另一个 PHP 版本安装器。
* [Static PHP CLI](https://github.com/crazywhalecc/static-php-cli) - 构建或[下载](https://dl.static-php.dev/static-php-cli/) PHP CLI 和 FPM 的静态版本。
### 开发环境
*用于创建和共享开发环境的软件和工具。*
* [Ansible](https://www.redhat.com/en/ansible-collaborative) - 极其简单的编排框架。
* [DDEV](https://github.com/ddev/ddev) - PHP 的本地 Web 开发环境系统。
* [Docker](https://www.docker.com/) - 容器化平台。
* [Docker PHP Extension Installer](https://github.com/mlocati/docker-php-extension-installer) - 在 Docker 容器中轻松安装 PHP 扩展。
* [Docksal](https://github.com/docksal/docksal) - 适用于 macOS、Windows 和 Linux 的统一 Docker :whale: 驱动 Web 开发环境。
* [Expose](https://github.com/exposedev/expose) - 开源 PHP 隧道服务。
* [Lando](https://lando.dev/) - 一键式开发环境。
* [Laravel Homestead](https://laravel.com/docs/master/homestead) - Laravel 的本地开发环境。
* [Laravel Herd](https://herd.laravel.com/windows) - 适用于 macOS 和 Windows 的一键式 PHP 开发环境。
* [Laradock](https://laradock.io/) - 基于 Docker 的完整 PHP 开发环境。
* [PHPMon](https://phpmon.app/) - 用于管理 PHP 安装的 macOS 菜单栏应用(与 [Laravel Valet](https://laravel.com/docs/master/valet) 配合使用)。
* [Puppet](https://www.puppet.com) - 服务器自动化框架和应用程序。
* [Solo](https://github.com/soloterm/solo) - 用于管理 Laravel 应用程序进程的终端应用程序。
* [Takeout](https://github.com/tighten/takeout) - 基于 Docker 的仅用于开发的依赖管理器。
* [Vagrant](https://developer.hashicorp.com/vagrant) - 便携式开发环境工具。
### 虚拟机
*替代的 PHP 虚拟机。*
* [Hack](https://hacklang.org/) - HHVM 的编程语言。
* [HHVM](https://github.com/facebook/hhvm) - 由 Facebook 开发的 PHP 虚拟机、运行时和 JIT。
* [PeachPie](https://github.com/peachpiecompiler/peachpie) - 用于 .NET 和 .NET Core 的 PHP 编译器和运行时。
### 文本编辑器和 IDE
*支持 PHP 的文本编辑器和集成开发环境 (IDE)。*
* [Eclipse for PHP Developers](https://www.eclipse.org/downloads/) - 基于 Eclipse 平台的 PHP IDE。
* [Apache NetBeans](https://netbeans.apache.org/front/main/index.html) - 支持 PHP 和 HTML5 的 IDE。
* [PhpEd](https://www.nusphere.com/products/phped.htm) - 具有专业商业调试器的 IDE。
* [PhpStorm](https://www.jetbrains.com/phpstorm/) - 商业 PHP IDE。
* [VS Code](https://code.visualstudio.com/) - 开源代码编辑器。
### Web 应用程序
*基于 Web 的应用程序和工具。*
* [3V4L](https://3v4l.org/) - 在线 PHP & HHVM shell。
* [Adminer](https://www.adminer.org/en/) - 单个 PHP 文件中的数据库管理工具。
* [Cachet](https://github.com/cachethq/cachet) - 开源状态页面系统。
* [Lychee](https://github.com/electerious/Lychee) - 易于使用且外观出色的照片管理系统。
* [Leantime](https://leantime.io) - 面向非项目经理的战略项目管理系统。
* [MailCatcher](https://github.com/sj26/mailcatcher) - 用于捕获和查看电子邮件的 Web 工具。
* [Mailpit](https://github.com/axllent/mailpit) - 面向开发者的电子邮件和 SMTP 测试工具。
* [phpMyAdmin](https://github.com/phpmyadmin/phpmyadmin) - MySQL/MariaDB 的 Web 界面。
* [PHP Queue](https://github.com/CoderKungfu/php-queue) - 用于管理队列后端的应用程序。
* [phpRedisAdmin](https://github.com/ErikDubbelboer/phpRedisAdmin) - 用于管理 [Redis](https://redis.io/) 数据库的简单 Web 界面。
* [PHPSandbox](https://phpsandbox.io) - 浏览器中的 PHP 在线 IDE。
### 基础设施
*提供 PHP 应用程序和服务的基础设施。*
* [appserver.io]() - 用 PHP 编写的 PHP 多线程应用程序服务器。
* [php-pm](https://github.com/php-pm/php-pm) - PHP 应用程序的进程管理器、加速器和负载均衡器。
* [RoadRunner](https://github.com/roadrunner-server/roadrunner) - 高性能 PHP 应用程序服务器、负载均衡器和进程管理器。
# 资源
各种资源,如书籍、网站和文章,用于提升你的 PHP 开发技能和知识。
### PHP 网站
*有用的 PHP 相关网站。*
* [Nomad PHP](https://nomadphp.com/) - 在线 PHP 学习资源。
* [Laravel News](https://laravel-news.com/) - 官方 Laravel 博客。
* [PHP Annotated Monthly](https://blog.jetbrains.com/phpstorm/tag/php-annotated-monthly/) - PHP 新闻的每月摘要。
* [PHP FIG](https://www.php-fig.org/) - PHP 框架互操作组。
* [PHP Package Development Standards](https://php-pds.com/) - PHP 包开发标准。
* [PHP School](https://www.phpschool.io/) - PHP 的开源学习。
* [PHP The Right Way](https://phptherightway.com/) - PHP 最佳实践快速参考指南。
* [PHP UG](https://php.ug) - 帮助人们找到离他们最近的 PHP 用户组 (UG) 的网站。
* [PHP Watch](https://php.watch/) - PHP 文章、新闻、即将到来的更改、RFC 等。
* [Unit Testing Tips](https://testing-tips.sarvendev.com/) - 通过 PHP 示例讲解的单元测试技巧。
### PHP 书籍
*极好的 PHP 相关书籍。*
* [Domain-Driven Design in PHP](https://leanpub.com/ddd-in-php) - 用 PHP 编写的展示 DDD 架构风格的真实示例。
* [Functional Programming in PHP](https://www.functionalphp.com/) - 一本关于在 PHP 中应用函数式编程原则和技术的书。
* [Mastering Object-Orientated PHP](https://masteringobjectorientedphp.com/) - Brandon Savage 撰写的关于面向对象 PHP 的书。
* [PHP Cookbook](https://www.oreilly.com/library/view/php-cookbook/9781098121310/) - 本食谱提供了代码配方,帮助你解决各种编码问题。
* [Modernizing Legacy Applications in PHP](https://leanpub.com/mlaphp) - Paul M. Jones 撰写的关于现代化遗留 PHP 应用程序的书。
* [Scaling PHP Applications](https://www.scalingphpbook.com) - Steve Corona 撰写的关于扩展 PHP 应用程序的电子书。
* [Securing PHP: Core Concepts](https://leanpub.com/securingphp-coreconcepts) - Chris Cornutt 撰写的关于 PHP 常见安全术语和实践的书。
* [Signaling PHP](https://leanpub.com/signalingphp) - Cal Evans 撰写的关于在 CLI 脚本中捕获 PCNTL 信号的书。
* [XML Parsing with PHP](https://www.phparch.com/books/xml-parsing-with-php/) - 本书涵盖了解析和验证 XML 文档、利用 XPath 表达式、处理命名空间,以及如何以编程方式创建和修改 XML 文件。
### PHP 视频
*极好的 PHP 相关视频。*
* [Laracasts](https://laracasts.com) - 关于 Laravel、Vue JS 等的截屏视频。
* [Laravel YouTube Channel](https://www.youtube.com/channel/UCfO2GiQwb-cwJTb1CuRSkwg) - 官方 Laravel YouTube 频道。
* [Program With Gio](https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-) - Gio 的 PHP 8 课程。
* [Programming with Anthony](https://www.youtube.com/playlist?list=PLM-218uGSX3DQ3KsB5NJnuOqPqc5CW2kW) - Anthony Ferrara 的视频系列。
* [SymfonyCasts](https://symfonycasts.com/) - 关于 PHP 和 Symfony 的截屏视频和教程。
### PHP 会议
*PHP 会议。*
* [Laracon EU](https://www.youtube.com/@LaraconEU) - Laracon EU 是一个为期 2 天的活动,面向有兴趣学习 Laravel 及相关技术,或希望与他人分享知识的人。
* [PHP[TEK]](https://phptek.io/) - 美国历史最悠久的关注 PHP 编程语言的 Web 开发者大会。
* [PHP UK Conference](https://www.youtube.com/user/phpukconference/videos) - PHP UK Conference 的视频合集。
### PHP 播客
*关注 PHP 话题的播客。*
* [Laravel News Podcast](https://podcast.laravel-news.com/) - Laravel News 播客为你带来与 Laravel PHP 框架相关的所有最新新闻和活动。
* [Mostly Technical](https://mostlytechnical.com/) - 由 Ian Landsman 和 Aaron Francis 主持,Mostly Technical 是一场关于 Laravel、商业及相关主题的生动讨论。
* [No Compromises](https://show.nocompromises.io/) - 两位经验丰富、言辞犀利的老程序员谈论基于多年与 Laravel SaaS 团队合作总结出的最佳实践。
* [North Meets South Web Podcast](https://www.northmeetssouth.audio/) - Jacob Bennett 和 Michael Dyrynda 克服 14.5 小时的时差,谈论 Web 开发者的生活。
* [Over Engineered](https://overengineered.fm/) - 迷你系列播客,我们以极其详尽的方式探索无关紧要的编程问题。
* [PHP Internals News](https://phpinternals.news) - 关于 PHP 内部机制的播客。
* [PHP Town Hall](https://phptownhall.com/) - 由 Ben Edmunds 和 Phil Sturgeon 主持的轻松
标签:BeEF, CMS, DNS解析, OpenVAS, PHP, PHP开发, SOC Prime, Syscall, Web开发, 中间件, 云安全监控, 代码分析, 依赖管理, 凭证管理, 后端开发, 学习资源, 安全, 安全专业人员, 开发工具, 开源项目, 技术栈, 暴露主机扫描, 测试, 爬虫, 精选列表, 组件, 超时处理, 软件库, 静态分析