yogcloud/alphaid

Create Youtube-Like IDs With PHP.

v1.1.2 2022-03-31 03:38 UTC

This package is auto-updated.

Last update: 2024-10-15 08:45:25 UTC


README

Install

composer require youcloud/alphaid

Usage

use YogCloud\AlphaID;

$id = new AlphaID();
$code = $id->encode(PHP_INT_MAX);
var_dump($code, $id->decode($code));

$code = $id->encode(PHP_INT_MAX, PHP_VERSION_ID);
var_dump($code, $id->decode($code));

$code = $id->encode([PHP_INT_MAX, PHP_VERSION_ID]);
var_dump($code, $id->decode($code));