class Base62

Constants

CHARS

BASE

Methods

static string
encode(int $number)

Encode the given number to a base62 string.

static int
decode(string $data)

Decode the given base62 string to a number.

Details

at line 20
static string encode(int $number)

Encode the given number to a base62 string.

Parameters

int $number

Return Value

string

Exceptions

InvalidArgumentException

at line 44
static int decode(string $data)

Decode the given base62 string to a number.

Parameters

string $data

Return Value

int

Exceptions

InvalidArgumentException