class Helpers

Rendering helpers for HTTP.

Traits

Static class.

Methods

static string
formatDate(string|int|DateTimeInterface $time)

Returns HTTP valid date format.

static bool
ipMatch(string $ip, string $mask)

Is IP address in CIDR block?

Details

at line 27
static string formatDate(string|int|DateTimeInterface $time)

Returns HTTP valid date format.

Parameters

string|int|DateTimeInterface $time

Return Value

string

at line 37
static bool ipMatch(string $ip, string $mask)

Is IP address in CIDR block?

Parameters

string $ip
string $mask

Return Value

bool