From 9b7ebd93f8cfc3a0aa3fc7e66bdd426203544490 Mon Sep 17 00:00:00 2001 From: Vlass Contreras <17748144+vlasscontreras@users.noreply.github.com> Date: Sat, 1 May 2021 18:41:53 -0600 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=93=9D=20add=20PHP=20extensions?= =?UTF-8?q?=20section=20to=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add documentation about including PHP extensions in workflows with config example. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 863af90..ab3bfa4 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,28 @@ jobs: version: 1 ``` + +Including PHP Extensions +------------------------------------------- + +This action includes the [extensions that Composer suggests](https://github.com/composer/composer/blob/master/composer.json#L44) by default. To include additional PHP extensions in your action steps, set the `php_extensions` input with any of the [supported extension names](https://github.com/mlocati/docker-php-extension-installer#supported-php-extensions) separated by spaces. + +Example configuration that runs Composer version 2 on PHP version 7.4 with the Redis and Exif extensions enabled: + +```yaml +jobs: + build: + + ... + + - name: Install dependencies + uses: php-actions/composer@v5 + with: + php_version: 7.4 + php_extensions: redis exif + version: 2 +``` + Caching dependencies for faster builds --------------------------------------