PHP code example of icecave / druid
1. Go to this page and download the library: Download icecave/druid 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/ */
icecave / druid example snippets
// Not yet implemented.
// Not yet implemented.
// Not yet implemented.
$generator = new Icecave\Druid\UuidVersion4Generator;
$uuid = $generator->generate();
assert($uuid instanceof Icecave\Druid\UuidInterface);
// Not yet implemented.
$uuidFromString = Icecave\Druid\Uuid::fromString(
'550e8400-e29b-41d4-a716-446655440000'
);
$uuidFromBinary = Icecave\Druid\Uuid::fromBinary(
"\x55\x0e\x84\x00\xe2\x9b\x41\xd4\xa7\x16\x44\x66\x55\x44\x00\x00"
);