Skip to content

Commit d25e6a0

Browse files
committed
feat(catalog): add multi_version config to PHP
- Enable multi-version support with endoflife.date as source - Configure binary_pattern 'php{cycle}' for version-specific binaries - Track up to 4 supported versions (8.5, 8.4, 8.3, 8.2) - Add version_files for project-level detection (.php-version, composer.json)
1 parent 4891d22 commit d25e6a0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

catalog/php.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,14 @@
1919
"install_action": "install",
2020
"order": 250
2121
},
22-
"notes": "Uses ondrej/php PPA for latest PHP version on Ubuntu/Debian. Required for Composer."
22+
"multi_version": {
23+
"enabled": true,
24+
"source": "endoflife",
25+
"product": "php",
26+
"max_versions": 4,
27+
"binary_pattern": "php{cycle}",
28+
"candidates": ["php{cycle}", "/usr/bin/php{cycle}"],
29+
"version_files": [".php-version", "composer.json"]
30+
},
31+
"notes": "Uses ondrej/php PPA for latest PHP version on Ubuntu/Debian. Required for Composer. Supports multiple concurrent versions (8.5, 8.4, 8.3, 8.2)."
2332
}

0 commit comments

Comments
 (0)