Skip to content

Commit ad31453

Browse files
Merge pull request #246933 from smile37773/qingyliu/php
add php language support
2 parents d41acd0 + e1bc4d5 commit ad31453

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

articles/spring-apps/how-to-enterprise-configure-apm-integration-and-ca-certificates.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Azure Spring Apps supports CA certificates for all language family buildpacks, b
4949
| NodeJS | |||||
5050
| Web servers | | | || |
5151
| Java Native Image | | | | | |
52+
| PHP | |||| |
5253

5354
For information about using Web servers, see [Deploy web static files](how-to-enterprise-deploy-static-file.md).
5455

@@ -76,6 +77,7 @@ This section lists the supported languages and required environment variables fo
7677
- Go
7778
- Node.js
7879
- WebServers
80+
- PHP
7981

8082
Environment variables required for buildpack binding:
8183
- `api-url` or `environment-id` (used in build step)
@@ -92,6 +94,7 @@ This section lists the supported languages and required environment variables fo
9294
- Java
9395
- .NET
9496
- Node.js
97+
- PHP
9598

9699
Environment variables required for buildpack binding:
97100
- `license_key`
@@ -104,6 +107,7 @@ This section lists the supported languages and required environment variables fo
104107
Supported languages:
105108
- Java
106109
- Node.js
110+
- PHP
107111

108112
Environment variables required for buildpack binding:
109113
- `service_name`

articles/spring-apps/how-to-enterprise-deploy-polyglot-apps.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ When you create an instance of Azure Spring Apps Enterprise, you must choose a d
3838
- [Node.js Buildpack for VMware Tanzu](https://network.tanzu.vmware.com/products/tanzu-nodejs-buildpack)
3939
- [Python Buildpack for VMware Tanzu](https://network.tanzu.vmware.com/products/tanzu-python-buildpack/)
4040
- [Java Native Image Buildpack for VMware Tanzu](https://network.tanzu.vmware.com/products/tanzu-java-native-image-buildpack/)
41+
- [PHP Buildpack for VMware Tanzu](https://network.tanzu.vmware.com/products/tbs-dependencies/#/releases/1335849/artifact_references)
4142

4243
For more information, see [Language Family Buildpacks for VMware Tanzu](https://docs.vmware.com/en/VMware-Tanzu-Buildpacks/services/tanzu-buildpacks/GUID-index.html).
4344

@@ -595,6 +596,22 @@ The following table lists the features supported in Azure Spring Apps:
595596
| Enable configuration of labels on the created image | Configures both OCI-specified labels with short environment variable names and arbitrary labels using a space-delimited syntax in a single environment variable. | `BP_IMAGE_LABELS` <br> `BP_OCI_AUTHORS` <br> See more envs [here](https://github.com/paketo-buildpacks/image-labels). | `--build-env BP_OCI_AUTHORS=<value>` |
596597
| Support building Maven-based applications from source. | Used for a multi-module project. Indicates the module to find the application artifact in. Defaults to the root module (empty). | `BP_MAVEN_BUILT_MODULE` | `--build-env BP_MAVEN_BUILT_MODULE=./gateway` |
597598

599+
### Deploy PHP applications
600+
601+
The buildpack for deploying PHP applications is [tanzu-buildpacks/php](https://network.tanzu.vmware.com/products/tbs-dependencies/#/releases/1335849/artifact_references).
602+
603+
The Tanzu PHP buildpack is only compatible with the Full OS Stack. We recommend using a builder with the `Jammy Full` OS stack. For more information, see the [OS stack recommendations](#os-stack-recommendations) section.
604+
605+
The following table lists the features supported in Azure Spring Apps:
606+
607+
| Feature description | Comment | Environment variable | Usage |
608+
|---------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------|-------------------------------------|
609+
| Specify the PHP version. | Configures the PHP version. Currently supported: PHP *8.0.\**, *8.1.\**, and *8.2.\**. The default value is *8.1.\** | `BP_PHP_VERSION` | `--build-env BP_PHP_VERSION=8.0.*` |
610+
| Add CA certificates to the system trust store at build and runtime. | See the [Configure CA certificates for app builds and deployments](./how-to-enterprise-configure-apm-integration-and-ca-certificates.md#configure-ca-certificates-for-app-builds-and-deployments) section of [How to configure APM integration and CA certificates](./how-to-enterprise-configure-apm-integration-and-ca-certificates.md). | N/A | N/A |
611+
| Integrate with Dynatrace, New Relic, App Dynamic APM agent. | See [How to configure APM integration and CA certificates](./how-to-enterprise-configure-apm-integration-and-ca-certificates.md). | N/A | N/A |
612+
| Select a Web Server. | The setting options are *php-server*, *httpd*, and *nginx*. The default value is *php-server*. | `BP_PHP_SERVER` | `--build-env BP_PHP_SERVER=httpd` |
613+
| Configure Web Directory. | When the web server is HTTPD or NGINX, the web directory defaults to *htdocs*. When the web server is the PHP built-in server, the web directory defaults to */workspace*. | `BP_PHP_WEB_DIR` | `--build-env BP_PHP_WEB_DIR=htdocs` |
614+
598615
## Next steps
599616

600617
- [Deploy web static files](how-to-enterprise-deploy-static-file.md)

0 commit comments

Comments
 (0)