1 Repo
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 ist ein OpenAPI-Spezifikationsgenerator und eine PHP-API-Dokumentationsbibliothek. Sie scannt PHP-Quellcode-Attribute und -Annotationen, um standardisierte Spezifikationsdateien und interaktive API-Referenzen zu erstellen. Das Tool fungiert als Schema-Inferenz-Engine, die Datentypen und Schemata aus nativen PHP-Type-Hints und generischen Blöcken ableitet. Es verwendet reflexionsbasierte statische Analyse, um Metadaten zu extrahieren, ohne Anwendungslogik auszuführen, und unterstützt rekursive Schema-Vererbung, um Definitionen aus Elternklassen und Interfaces zusammenzuführen. Das Projekt enthält ein CLI-Utility zum Exportieren von API-Definitionen in statische YAML- oder JSON-Dateien. Es bietet zudem eine Pipeline für die Spezifikationsassemblierung mit pluggbarer Verarbeitungslogik, um zu modifizieren, wie Quellcode analysiert oder strukturiert wird.
Defines data structures and reusable components for web interfaces using native PHP type hints and class inheritance.