https://github.com/swisscom/cf-sample-app-php
A sample Lumen application to deploy to Cloud Foundry which works out of the box.
https://github.com/swisscom/cf-sample-app-php
Last synced: 4 months ago
JSON representation
A sample Lumen application to deploy to Cloud Foundry which works out of the box.
- Host: GitHub
- URL: https://github.com/swisscom/cf-sample-app-php
- Owner: swisscom
- License: other
- Created: 2016-04-14T14:18:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:16:28.000Z (over 1 year ago)
- Last Synced: 2025-10-08T06:56:07.976Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 35
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CF Sample App PHP
A sample [Lumen](https://lumen.laravel.com/) application to deploy to Cloud Foundry which works out of the box.
## Run locally
1. Install [PHP](https://secure.php.net/manual/en/install.php)
1. Install [Composer](https://getcomposer.org/download/) globally on your machine
1. Run `composer install`
1. Run `php -S localhost:3000 -t public`
1. Visit [http://localhost:3000](http://localhost:3000)
## Run in the cloud
1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `cf push my-php-app -m 128M --random-route`
1. Visit the given URL