Add contributor instructions to README.md

pull/2/head
Michele Locati 2018-04-12 11:58:21 +02:00
parent fe7a5b3de5
commit a8c7753344
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 12 additions and 0 deletions

View File

@ -115,3 +115,15 @@ Some extension has special requirements:
|:---:|:---:| |:---:|:---:|
| pthreads | Requires images with PHP compiled with thread-safety enabled (`zts`). | | pthreads | Requires images with PHP compiled with thread-safety enabled (`zts`). |
<!-- END OF SPECIAL REQUIREMENTS --> <!-- 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