atphp/uuid

Common tools for PHP

Maintainers

Package info

github.com/atphp/uuid

pkg:composer/atphp/uuid

Statistics

Installs: 223

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-12 23:41:48 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();
  }
}