draw/open-api
PHP library for manipulating OpenAPI (Swagger) documents. Focused on OpenAPI/Swagger 2.0 only, providing tools to read, update, and work with API definitions in code.
API Documentation & Developer Experience (DX):
Roadmap Prioritization:
Use Cases:
routes/api.php) to keep docs in sync with code.Adopt if:
Look elsewhere if:
zircote/swagger-php or darkaonline/l5-swagger."This OpenAPI library lets our Laravel-based APIs auto-generate and validate their documentation programmatically, cutting the time engineers spend manually updating Swagger specs by ~50%. By embedding spec validation into our CI/CD pipeline, we’ll catch API inconsistencies early—reducing outages and improving developer velocity. It’s a low-risk, high-reward tool to modernize our API DX without major upfront costs."
Key Outcomes:
*"This package gives us a PHP-native way to manipulate OpenAPI 2.0 specs—perfect for:
php artisan openapi:generate).It’s lightweight, Laravel-friendly, and avoids vendor lock-in. We can start with v2.0 and migrate to v3.x later if needed. Let’s prototype it for our [Project X] API to see how it fits."*
Why Now?
How can I help you explore Laravel packages today?