Skip to content

Commit 70ed52c

Browse files
author
Greg Bowler
authored
Merge pull request #56 from vlasscontreras/patch-1
Add PHP extensions section to README.md
2 parents 227c233 + 9b7ebd9 commit 70ed52c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,28 @@ jobs:
103103
version: 1
104104
```
105105

106+
107+
Including PHP Extensions
108+
-------------------------------------------
109+
110+
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.
111+
112+
Example configuration that runs Composer version 2 on PHP version 7.4 with the Redis and Exif extensions enabled:
113+
114+
```yaml
115+
jobs:
116+
build:
117+
118+
...
119+
120+
- name: Install dependencies
121+
uses: php-actions/composer@v5
122+
with:
123+
php_version: 7.4
124+
php_extensions: redis exif
125+
version: 2
126+
```
127+
106128
Caching dependencies for faster builds
107129
--------------------------------------
108130

0 commit comments

Comments
 (0)