php

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectVersion

func DetectVersion(dir string) (string, error)

DetectVersion detects the PHP version for the given directory. It checks, in order:

  1. .php-version file
  2. .lerd.yaml php_version field
  3. composer.json require.php semver
  4. global config default

func IsInstalled

func IsInstalled(version string) bool

IsInstalled returns true if the given PHP version is available in the bin dir.

func ListInstalled

func ListInstalled() ([]string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL