buildrush/Setup PHP
Fast, reproducible PHP setup with prebuilt bundles
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| php-version | PHP version to set up | no | 8.4 |
| phpts | Thread safety ('nts' or 'zts'). Only nts bundles are currently published; zts falls back to nts with a warning (or errors under fail-fast: true). | no | nts |
| extensions | Comma-separated list of PHP extensions to install | no | — |
| ini-values | Comma-separated list of php.ini values (key=value) | no | — |
| ini-file | Base ini template ('production' or 'development'). Only 'production' is currently supported; other values emit a warning and are ignored. | no | production |
| coverage | Coverage driver to set up (xdebug, pcov, none) | no | none |
| tools | Comma-separated list of tools to install | no | — |
| update | Update pre-installed PHP. No-op under prebuilt bundles; accepted for compatibility with shivammathur/setup-php@v2. | no | false |
| fail-fast | Promote soft fallbacks (e.g. ZTS not available, unsupported tools input) to hard errors. | no | false |
| php-version-file | File containing PHP version | no | — |
| github-token | GitHub token for authenticated registry access | no | ${{ github.token }} |
| registry | OCI artifact store used to fetch PHP and extension bundles. Defaults to ghcr.io/buildrush. Set to oci-layout:<path> to fetch from a local OCI-layout directory (used by local CI). | no | "" |
Outputs
| name | description |
|---|---|
| php-version | The installed PHP version |