- Home
- Skills
- APIs & Backend
- php openapi generator
Works with the AI Agents you already use
php openapi generator
Generate valid OpenAPI 3.0 specifications directly from PHP routes, controllers, and validation logic.
$7.20
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.
Trust & safety
Security scan
Security scan passed 3 months ago
Permissions
What's inside
Frequently Asked Questions
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.