sy-records/alphaid

Create Youtube-Like IDs With PHP.

v1.0.2 2023-10-27 01:57 UTC

This package is auto-updated.

Last update: 2024-11-27 04:19:34 UTC


README

Install

composer require sy-records/alphaid

Usage

use Luffy\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));