Skip to Content
PHP 7: Real World Application Development
book

PHP 7: Real World Application Development

by Doug Bierer, Altaf Hussain, Branko Ajzele
September 2016
Intermediate to advanced
1091 pages
21h 41m
English
Packt Publishing
Content preview from PHP 7: Real World Application Development

Lumen

Lumen is a micro-framework provided by Laravel. Lumen is mainly intended to create stateless APIs and has a minimal set of features of Laravel. Also, Lumen is compatible with Laravel, which means that if we just copy our Lumen application to Laravel, it will work fine. The installation is simple. Just use the following Composer command to create a Lumen project, and it will download all the dependencies, including Lumen:

composer create-project --prefer-dist laravel/lumen api

The preceding command will download Lumen and then create our API application. After this, rename .env.example as .env. Also, create a 32-characters-long app key and place it in the .env file. Now, the basic application is ready to use and create APIs.

Note

Lumen is almost ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro PHP Programming

Pro PHP Programming

Peter MacIntyre, Brian Danchilla, Mladen Gogala
Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Intermediate PHP

Intermediate PHP

Lorna Jane Mitchell
Mastering PHP 7

Mastering PHP 7

Branko Ajzele

Publisher Resources

ISBN: 9781787129009