Files
actions/php-version-detect/README.md
Ismo Vuorinen 7061aafd35 chore: add tests, update docs and actions (#299)
* docs: update documentation

* feat: validate-inputs has it's own pyproject

* security: mask DOCKERHUB_PASSWORD

* chore: add tokens, checkout, recrete docs, integration tests

* fix: add `statuses: write` permission to pr-lint
2025-10-18 13:09:19 +03:00

43 lines
1.1 KiB
Markdown

# ivuorinen/actions/php-version-detect
## PHP Version Detect
### Description
Detects the PHP version from the project's composer.json, phpunit.xml, or other configuration files.
### Inputs
| name | description | required | default |
|-------------------|--------------------------------------------------------------|----------|---------|
| `default-version` | <p>Default PHP version to use if no version is detected.</p> | `false` | `8.2` |
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
### Outputs
| name | description |
|---------------|-----------------------------------------|
| `php-version` | <p>Detected or default PHP version.</p> |
### Runs
This action is a `composite` action.
### Usage
```yaml
- uses: ivuorinen/actions/php-version-detect@main
with:
default-version:
# Default PHP version to use if no version is detected.
#
# Required: false
# Default: 8.2
token:
# GitHub token for authentication
#
# Required: false
# Default: ""
```