Yuriy Belenko ba8a50137a
[php-lumen] Set required PHP version to ^7.2.5 (#6949)
* Set required PHP version to ^7.2.5

* Write .gitignore into srcBasePath

* Update dependencies

* Copy latest Lumen sources to templates

* Add Lumen license template

* Use Lumen license in templates

* Fix typo in readme

* Add Init App Config readme section

* Add composer.lock to root gitignore

* Add Travis-CI task

* Set OAS 3.0 input spec file for samples

* Refresh samples
2020-08-04 10:33:10 +08:00
..

OpenAPITools 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 Lumen Framework. To see how to make this your own, please take a look at the template here:

TEMPLATES

Installation & Usage

Composer

Switch to the generated Lumen server stub directory. Using composer update to install the framework and dependencies via Composer.

Init App Config

Use .env.example as starting point for a new application config:

$ composer run post-root-package-install

Note

The composer update should be the first thing to do right after generating Lumen server stub. The autoload.php will be generated only after executing composer update. Or there would be errors during service or model migration.

Running the generated server stub

php -S localhost:8080 public/index.php