Giter Club home page Giter Club logo

php-cnb's Introduction

PHP Cloud Native Buildpack

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.

Detection

The detection phase always passes and contributes nothing to the build plan, depending on other buildpacks to request contributions.

Build

If the build plan contains

  • php-binary
    • Contributes PHP to a layer marked build and cache with all commands on $PATH
    • If buildpack.yml contains php.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 as 7.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 and cache
    • If metadata.launch = true
      • Marks layer as launch

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.

php-cnb's People

Contributors

cf-buildpacks-eng avatar dfreilich avatar dwillist avatar kardolus avatar ndon55555 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.