Download the PHP package organiseyou/openapi-generator without Composer
On this page you can find all versions of the php package organiseyou/openapi-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download organiseyou/openapi-generator
More information about organiseyou/openapi-generator
Files in organiseyou/openapi-generator
Download organiseyou/openapi-generator
More information about organiseyou/openapi-generator
Files in organiseyou/openapi-generator
Vendor organiseyou
Package openapi-generator
Short Description Library to generate openapi specification
License MIT
Package openapi-generator
Short Description Library to generate openapi specification
License MIT
Please rate this library. Is it a good library?
Informations about the package openapi-generator
OpenApiGenerator
A lightweight, fluent PHP service for generating OpenAPI 3.0.0 specifications programmatically. Perfect for Laravel and standalone PHP applications.
Installation
Quick Start
Core Features
Schemas
Define reusable data structures with the schema() method:
Dynamic Properties with Loops
Add properties dynamically from arrays or databases:
Endpoints with Full Documentation
Define API endpoints with parameters, request bodies, and responses:
POST with Request Body
Multiple Methods on Same Path
Reusable Response Components
Output Formats
JSON Output
Generate Array
YAML Output
Requires symfony/yaml:
Laravel Integration
Service Provider Setup
Create a route to serve your API documentation:
In a Service Class
Then use it in a controller:
Complete Example
API Reference
OpenApiService
addPath(string $path, string $method, array $operation): selfaddSchema(string $name, array $schema): selfaddResponse(string $name, array $response): selfpath(string $path): PathBuilderschema(string $name): SchemaBuildergenerate(): arraytoJson(int $flags = JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT): stringtoYaml(): string
PathBuilder
method(string $method): selfsummary(string $summary): selfdescription(string $description): selftags(array $tags): selfparameters(array $parameters): selfrequestBody(array $content, bool $required = true): selfresponse(int|string $status, array $response): selfregister(): OpenApiService
SchemaBuilder
type(string $type): selfproperty(string $name, string $type, array $options = []): selfrequired(array $fields): selfdescription(string $description): selfexample(array $example): selfregister(): OpenApiService
License
MIT
All versions of openapi-generator with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package organiseyou/openapi-generator contains the following files
Loading the files please wait ...