PHP code example of mediagone / small-uid
1. Go to this page and download the library: Download mediagone/small-uid library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mediagone / small-uid example snippets
$uid = SmallUid::random();
// from a given base-62 string
$uid = SmallUid::fromString('1GUDp752fwX');
(string)$uid; // string(11) "1GUDp752fwX"