Neuron-PHP

IsBase64 extends Base
in package

Validates base64 encoded data.

Table of Contents

Properties

$AllowUrlSafe  : bool

Methods

__construct()  : mixed
isValid()  : bool
Returns true if validation is successful
validate()  : bool
Abstract method to be implemented by all validators.

Properties

$AllowUrlSafe

private bool $AllowUrlSafe

Methods

__construct()

public __construct([bool $AllowUrlSafe = true ]) : mixed
Parameters
$AllowUrlSafe : bool = true

Whether to allow URL-safe base64 variant (RFC 4648)

isValid()

Returns true if validation is successful

public isValid(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

validate()

Abstract method to be implemented by all validators.

protected validate(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results