Skip to content

Commit

Permalink
Add contributor instructions to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Apr 12, 2018
1 parent fe7a5b3 commit a8c7753
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -115,3 +115,15 @@ Some extension has special requirements:
|:---:|:---:|
| pthreads | Requires images with PHP compiled with thread-safety enabled (`zts`). |
<!-- END OF SPECIAL REQUIREMENTS -->


## How to contribute

- If you want to add support for a new PHP extension:
1. change the `install-php-extensions` script
2. update the `data/supported-extensions` file, adding a new line with the handle of the extension and the list of supported PHP versions
3. if the extension requires ZTS images:
add a new line to the `data/special-requirements` file, with the extension handle followed by a space and `zts`
- If you want to change the list of supported PHP versions for an already supported extension:
1. change the `install-php-extensions` script
2. update the `data/supported-extensions` file, adding the new PHP version to the existing line corresponding to the updated extension

0 comments on commit a8c7753

Please sign in to comment.