{"modulePath":"github.com/cloudfoundry/php-web-cnb","version":"v0.0.96","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package phpweb\n\n## Constants\n\n```go\nconst (\n\t// Dependency in the buildplan indicates that this is a web app\n\tDependency = \"php-web\"\n)\n```\n\n## Functions\n\n```go\nfunc LoadAvailablePHPExtensions() ([]string, error)\n```\nLoadAvailablePHPExtensions locates available extensions and returns the list\n\n```go\nfunc PickWebDir(buildpackYAML config.BuildpackYAML) string\n```\nPickWebDir will select the correct web directory to use\n\n```go\nfunc SearchForWebApp(appRoot string, webdir string) (bool, error)\n```\nSearchForWebApp looks to see if this application is a PHP web app\n\n```go\nfunc Version(buildpack buildpack.Buildpack) string\n```\nVersion returns the selected version of PHP using the following precedence:\n\n1\\. \\`php.version\\` from \\`buildpack.yml\\` 2. Build Plan Version, if set by composer 3. Buildpack Metadata \"default\\_version\" 4. \\`\\*\\` which should pick latest version\n\n## Types\n\n```go\ntype Contributor struct {\n\t// contains filtered or unexported fields\n}\n```\nContributor represents a PHP contribution by the buildpack\n\n```go\nfunc NewContributor(context build.Build) (Contributor, bool, error)\n```\nNewContributor creates a new Contributor instance. willContribute is true if build plan contains \"php-script\" or \"php-web\" dependency, otherwise false.\n\n```go\nfunc (c Contributor) Contribute() error\n```\nContribute contributes an expanded PHP to a cache layer.\n\n```go\ntype Metadata struct {\n\tName string\n\tHash string\n}\n```\nMetadata is used solely for providing \\`Identity()\\`\n\n```go\nfunc (m Metadata) Identity() (name string, version string)\n```\nIdentity provides libcfbuildpack with information to decide if it should contribute\n\n","path":"github.com/cloudfoundry/php-web-cnb/phpweb","name":"phpweb","synopsis":"","isRedistributable":true}
