1 个仓库
The practice of defining web API data structures using PHP native type hints and class hierarchies.
Distinct from PHP Type Resolvers: Shortlist candidates focus on runtime discovery or SAPI bridges, not the modeling of API schemas in PHP.
Explore 1 awesome GitHub repository matching web development · PHP API Schema Modeling. Refine with filters or upvote what's useful.
swagger-php 是一个 OpenAPI 规范生成器和 PHP API 文档库。它扫描 PHP 源代码属性和注解,以生成标准化的规范文件和交互式 API 参考。 该工具作为一个模式推断引擎,从原生 PHP 类型提示和泛型块中派生数据类型和模式。它使用基于反射的静态分析来提取元数据而不执行应用程序逻辑,并支持递归模式继承以合并来自父类和接口的定义。 该项目包括一个用于将 API 定义导出为静态 YAML 或 JSON 文件的命令行工具。它还提供了一个带有插件式处理逻辑的规范组装流水线,以修改源代码的分析或结构化方式。
Defines data structures and reusable components for web interfaces using native PHP type hints and class inheritance.