tukangketik / genoa
Lumen REST API (Generated) from Open API v3 spec
v0.1
2021-05-31 12:03 UTC
Requires
- php: >=7.4
- cebe/php-openapi: ^1.5
- friendsofphp/php-cs-fixer: ^3.0
- illuminate/console: ^8.40
- illuminate/filesystem: ^8.40
- illuminate/support: ^8.40
- symfony/var-dumper: ^5.2
This package is auto-updated.
Last update: 2024-11-14 22:41:29 UTC
README
The package provides a simple way to create Open API service (REST API).
This package uses cebe/php-openapi for reading from Open API specification.
Features
- Auto generate routes, Http/Request, Http/Controller, models
- Auto generate common HTTP responses
- Add support allOf extends Open API
Getting started
Installation via composer
First of all, create lumen project
$ composer create-project --prefer-dist laravel/lumen my-project
in your project directory run:
$ composer require tukangketik/genoa
add the service provider in bootstrap/app.php
$app->register(Genoa\GeneratorOpenApiServiceProvider::class);
The service provider will register to artisan command.
Running generator
$ php artisan genoa:yml pathOfYmlFile.yml
Add