Skip to content

EnvironmentInterface

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

Reads process environment variables without binding callers to Composer APIs.


  • Full name: \FastForward\DevTools\Environment\EnvironmentInterface

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