Documentation

Env

Table of Contents

$items  : array<string|int, mixed>
All of the configuration items.
__construct()  : void
Create a new env configuration repository.
all()  : array<string|int, mixed>
Get all of the configuration items for the application.
get()  : mixed
Get the specified configuration value.
load()  : array<string|int, mixed>
Load the configuration file.

Properties

$items

All of the configuration items.

protected array<string|int, mixed> $items = []
Tags
since
1.0.0

Methods

__construct()

Create a new env configuration repository.

public __construct([array<string|int, mixed> $items = [] ]) : void
Parameters
$items : array<string|int, mixed> = []
Tags
since
1.0.0
Return values
void

all()

Get all of the configuration items for the application.

public all() : array<string|int, mixed>
Tags
since
1.0.0
Return values
array<string|int, mixed>

get()

Get the specified configuration value.

public get(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null
Tags
since
1.0.0
Return values
mixed

load()

Load the configuration file.

public load() : array<string|int, mixed>
Tags
since
1.0.0
Return values
array<string|int, mixed>

Search results