Quick-ID
Quick-ID

PHP library to quick generate random alpha number ids that can be used for url shortners, video ids, and many other quick link ids.

Install

Composer

composer install advancedideasmechanics/quick-id

Stand-Alone

require('./vendor/autoload.php');

Laminas (formally Zend Framework 3)

Instructions coming soon.

Call package

$quickidService = new Advancedideasmechanics\Antivirus\QuickidService();
$response = $quickidService->getId(3);

To see the response from the server you can send to you internal logger or just dump from your test page.

var_dump($response);

Information

The smallest quick id to be generated is 3. The maximum is well within a usable alpha-numeric pattern.
Each character response will be one of 62 characters a-zA-Z0-9. The length of 3 alpha-numeric characters provides 238,328 unique ids. Length of 4 characters generates 4,776,336 unique ids.
62*62*62 = 238,328