Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectExtensions ¶ added in v0.5.5
DetectExtensions reads composer.json in dir and returns the list of PHP extensions declared in the require map (ext-* keys), with the "ext-" prefix stripped. Returns an empty slice on any error (non-fatal).
func DetectVersion ¶
DetectVersion detects the PHP version for the given directory. It checks, in order:
- .lerd.yaml php_version field (explicit lerd override)
- .php-version file (explicit per-project pin)
- composer.json require.php semver (project requirement)
- global config default
func IsInstalled ¶
IsInstalled returns true if the given PHP version has an FPM quadlet.
func ListInstalled ¶
ListInstalled returns all PHP versions that have an FPM quadlet file or a running/existing Podman container, e.g. ["8.3", "8.4"]. The two sources are merged so users whose quadlet file is missing but whose container still exists are not excluded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.