PHP code example of universetech-inc / xid-php
1. Go to this page and download the library: Download universetech-inc/xid-php 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/ */
universetech-inc / xid-php example snippets
$guid = \Fpay\Xid\Generator::create();
echo $guid . PHP_EOL;
// Output: 9m4e2mr0ui3e8a215n4g
$guid->machine();
$guid->pid();
$guid->time();
$guid->counter();
$guid = \Fpay\Xid\Generator::fromString("9m4e2mr0ui3e8a215n4g");