Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectVersion ¶
DetectVersion detects the PHP version for the given directory. It checks, in order:
- .php-version file
- .lerd.yaml php_version field
- composer.json require.php semver
- global config default
func IsInstalled ¶
IsInstalled returns true if the given PHP version is available in the bin dir.
func ListInstalled ¶
ListInstalled returns all PHP versions installed in the lerd bin directory. Versions are returned in sorted order, e.g. ["8.3", "8.4"].
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.