The Cloud Foundry PHP Buildpack is a Cloud Native Buildpack V3 that provides PHP binaries to applications.
This buildpack is designed to work in collaboration with other buildpacks which request contributions of PHP.
The detection phase always passes and contributes nothing to the build plan, depending on other buildpacks to request contributions.
If the build plan contains
php-binary
- Contributes PHP to a layer marked
build
andcache
with all commands on$PATH
- If
buildpack.yml
containsphp.verison
, configures a specific version. This value must exactly match a version available in the buildpack so typically it would configured to a wildcard such as7.2.*
. - Contributes
$PHPRC
configured to the build layer - Contributes
$PHP_INI_SCAN_DIR
configured to the build layer - If
metadata.build = true
- Marks layer as
build
andcache
- Marks layer as
- If
metadata.launch = true
- Marks layer as
launch
- Marks layer as
- Contributes PHP to a layer marked
To package this buildpack for consumption:
$ ./scripts/package.sh
This builds the buildpack's Go source using GOOS=linux by default. You can supply another value as the first argument to package.sh.
This buildpack is released under version 2.0 of the Apache License.