Works with the AI Agents you already use

    php openapi generator

    by Dawood Morris Kaundama

    1

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

    $7.20

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    php openapi generator

    php openapi generator

    Example session with this skill installed

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

    • Read your context and instructions
    • Compiled the php openapi generator

    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'

    Connects securely to your tools. The creator never sees your data.

    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 use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill scans your actual PHP source code—including route files, controller methods, and validation logic—to build an OpenAPI 3.0 spec. It eliminates manual YAML writing and prevents 'documentation rot' by ensuring your API spec matches your actual code.

    The skill is optimized for Laravel and Slim frameworks, but it also supports custom PHP implementations. It is compatible with major AI agents that have filesystem access, allowing it to parse your directory structure and files.

    No, this skill is designed specifically for 'code-first' documentation of existing APIs. It extracts schemas from your current codebase rather than scaffolding new routes or boilerplate from a design doc.

    The generator extracts path parameters, request body schemas from validation rules, and response shapes from controller returns. It also identifies authentication requirements by analyzing your route middleware and headers.

    You will receive the AI agent skill configuration, detailed instructions for integration, and any necessary logic required to run the extraction process. You also get lifetime access to any updates or improvements made to the generator logic.

    While highly accurate, if the skill encounters complex dynamic logic it can't resolve, it will insert a TODO comment in the YAML rather than hallucinating data. This allows you to quickly find and manually verify edge cases.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.