forked from loafle/openapi-generator-original
* + support for enum models & separating mustache templates for enums and generics + extract property 'type' and 'default value' from a #ref to an enum model + support for `PascalCase` naming convention for PHP generators + use a default value for known basic types when they are not nullable + use 'null' as default value for nullable types when they do not specify the default value + use defined constant path as enum default value when found * + sample output update * + change model fields to be public and acessible from outside * + sample output update Co-authored-by: Mostafa Aghajani <mostafa.aghajani@virta.global>
OpenAPI generated server
Requirements
- PHP 7.2.5 or newer
Overview
This server was generated by the openapi-generator project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub. This is an example of building a PHP server.
This example uses the laravel Framework. To see how to make this your own, please take a look at the template here:
Installation & Usage
Composer
Using composer install
to install the framework and dependencies via Composer.
post installation steps
Change into application folder and execute following commands to get started:
cp .env.example .env
php artisan key:generate
php artisan serve