mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-20 00:20:51 +00:00
* Add samples composer.lock to root .gitignore composer.lock may produce CI errors when you need to test build against different PHP versions. However users most likely want to commit this file, so I think it's better to exclude it only in root .gitignore. * Commit composer.lock in default PHP templates * Refresh samples
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