php-web

module
v0.0.98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: Apache-2.0

README

PHP Web Cloud Native Buildpack

The Paketo PHP Web Buildpack is a Cloud Native Buildpack V3 that configures PHP applications to run.

This buildpack is designed to work in collaboration with other buildpacks which do things like provide PHP binaries. (e.g. PHP Dist CNB)

Detection

The detection phase passes if either of the following conditions hold true:

  • <APPLICATION_ROOT>/<WEBDIR>/*.php exists
  • <APPLICATION_ROOT>/**/*.php exists

Build

Looks at buildpack.yml for php.webserver, if

  • php-server, contribute a web process type using php -S
  • httpd, generate a suitable httpd.conf
  • nginx, generate a suitable nginx.conf

Integration

The PHP Web CNB is the last in the standard chain of PHP CNBs. It provides php-web as a dependency, but currently there's no scenario we can imagine that you would use a downstream buildpack to require this dependency. If a user likes to include some other functionality (like a monitoring tool or a db driver), it can be done independent of the PHP Web CNB without requiring a dependency of it.

To Package

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.

License

This buildpack is released under version 2.0 of the Apache License.

Directories

Path Synopsis
cmd
build command
detect command
procmgr command
session_helper command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL