Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    php openapi generator

    by Dawood Morris Kaundama

    1

    Generate valid OpenAPI 3.0 specifications directly from PHP routes, controllers, and validation logic.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Scan my Laravel routes/api.php and the UserController to create an OpenAPI spec.

    Your agent does

    openapi: 3.0.3 info: title: User API version: 1.0.0 paths: /users/{id}: get: summary: Get user by ID parameters: - name: id in: path required: true schema: type: integer responses: '200': content: application/json: schema: $ref: '#/components/schemas/User'

    What you get

    Sync API documentation with existing PHP source code.Prepare legacy PHP APIs for integration with API gateways.Enable frontend teams to generate type-safe client SDKs.Automate the creation of Swagger/Redoc documentation pages.

    About this skill

    The problem

    Writing OpenAPI specs for legacy or undocumented PHP APIs is tedious and prone to human error. Developers often waste hours manually syncing YAML files with their Laravel, Slim, or plain PHP route and controller logic.

    What it does

    • Scans PHP route files and controllers to identify HTTP methods, paths, and parameters.
    • Extracts request validation rules and response shapes directly from the source code.
    • Maps PHP data structures to valid OpenAPI 3.0 types (string, integer, boolean, etc.).
    • Organizes repeated data structures into reusable components and schemas via $ref.
    • Detects authentication middleware and security requirements like Bearer tokens or API keys.

    Frameworks & tools

    Supports Laravel, Slim, and plain PHP. Generates OpenAPI 3.0.3 YAML compatible with Swagger UI, Redoc, and Postman.

    Why this beats prompting it yourself

    Generic prompts often hallucinate endpoints or invent response fields that do not exist. This skill follows a strict extraction logic that prioritizes code-level evidence, marking gaps with TODO comments instead of fabricating data.

    Use cases

    • Documenting an existing Laravel API for a new frontend team.
    • Generating a spec file to bootstrap client SDK generation.
    • Creating a Postman collection source for manual testing.
    • Audit of internal endpoints for security and compliance reviews.

    Known limitations

    Designed for documenting existing code only, not for scaffolding new endpoints. Requires access to both route definitions and controller logic for accurate schema generation.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    Frequently Asked Questions

    Popular in Documentation