Skip to content

Environment

github-actions edited this page Apr 24, 2026 · 1 revision

Reads environment variables through PHP's native runtime.


Methods

get

Reads an environment variable.

public get(string $name, string|null $default = null): string|null

Parameters:

Parameter Type Description
$name string the environment variable name
$default string|null the value returned when the variable is not defined

Return Value:

the variable value, or the default when it is not defined


Clone this wiki locally