andytruong / uuid
Common tools for PHP
v0.1.2
2014-08-26 00:04 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-11-19 03:38:15 UTC
README
PHP UUID generator wrapper, requires PHP >= 5.4, copied from Drupal 8 code.
Usage
<?php // Use inside your function $uuid = AndyTruong\Uuid\Uuid::getGenerator()->generate(); // Use inside your library class MyClass { public function myMethod(\AndyTruong\Uuid\UuidInterface $uuid_maker) { $uuid = $uuid_maker->generate(); } }