swisscom / cf-sample-app-php

A sample Lumen application to deploy to Cloud Foundry which works out of the box.
Other
0 stars 3 forks source link

CF Sample App PHP

A sample Lumen application to deploy to Cloud Foundry which works out of the box.

Run locally

  1. Install PHP
  2. Install Composer globally on your machine
  3. Run composer install
  4. Run php -S localhost:3000 -t public
  5. Visit http://localhost:3000

Run in the cloud

  1. Install the cf CLI
  2. Run cf push my-php-app -m 128M --random-route
  3. Visit the given URL