Source: levelup.gitconnected.com

Microservices with PHP and Lumen

Category: Laravel, PHP, git

PHP was developed in 1994 by Rasmus Lerdorf as a simple way to intermix code executed on the server and standard HTML. It was translated to pure HTML on the server and sent as a response to an HTTP request.

Once you have Compose, you can start a new project: You can start it up with a test server: Browse to http://localhost:8000 and you should see the Lumen version printed in your browser.

Start and stop the server and you should be able to browse to http://localhost:8000/api/ and http://localhost:8000/api/1 and see ‘Get All’ and ‘Get 1’ printed in your browser.

First, we must build and deploy the image so it can be used in production: This will create an image that can run in a container, and push it up to Docker Hub so your cloud VM can use it.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners