Skip to content

Sample PHP Laravel application that runs on Cloud Foundry

Notifications You must be signed in to change notification settings

mborges-pivotal/php-laravel-sample

Repository files navigation

php-laravel-sample

A sample code of PHP with Laravel

Deploy this app to localhost

$ git clone https://github.com/mborges-pivotal/php-laravel-sample.git
$ cd php-laravel-sample/
$ composer install
$ cp .env.example .env
$ php artisan key:generate
$ php artisan serve

Access to

Running on Cloud Foundry

-> cat .bp-config/options.json
{
    "WEB_SERVER": "nginx",
    "WEBDIR": "public",
    "PHP_VERSION": "{PHP_72_LATEST}",
    "COMPOSER_VENDOR_DIR": "vendor"
}

We would like this sample able to exercise redis, postgres and twilio. The manifest below automatically binds the required services.

-> cat manifest.yml
---
applications:
- name: laravel
  memory: 128M
  instances: 1
  path: .
  services: []
  buildpack: php_buildpack
  env:
    BP_DEBUG: "False"

About

Sample PHP Laravel application that runs on Cloud Foundry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published