fharsanto / genoa by fharsanto

Lumen REST API (Generated) from Open API v3 spec
190
0
1
Package Data
Maintainer Username: fharsanto
Maintainer Contact: feri.harsanto@gmail.com (Feri Harsanto)
Package Create Date: 2021-05-31
Package Last Update: 2021-06-14
Language: PHP
License: Apache-2.0
Last Refreshed: 2024-11-17 03:06:57
Package Statistics
Total Downloads: 190
Monthly Downloads: 7
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Genoa (Generator from Open API)

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