Common tools for PHP

v0.1.2 2014-08-26 00:04 UTC

This package is not auto-updated.

Last update: 2024-11-05 03:31:50 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();
  }
}