Common tools for PHP

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

This package is not auto-updated.

Last update: 2024-10-08 03:07:39 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();
  }
}