A very simple example of using Composer with CF.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md Update sample app to work in CI testing Sep 14, 2016
composer.lock Updated composer config. Sep 12, 2018
info.php Added info file to check on extensions. Aug 6, 2014
manifest.yml Remove unnecessary static route from app manifest Sep 20, 2018


CloudFoundry PHP example application: composer

This is an very basic example application that demonstrates using Composer with the PHP Buildpack.

The application installs some packages using Composer, sets the PHP version and includes some platform extensions. Accessing the application in the browser will just log a statement using one of the included packages. It provides a link to the log (something you would not normally do) so that you can verify it's working.


Clone the app and push it to CloudFoundry.

git clone https://github.com/cloudfoundry-samples/cf-ex-composer
cd cf-ex-composer
cf push

Access your application URL in the browser.