atphp/uuid

Common tools for PHP

Maintainers

Details

github.com/atphp/uuid

Source

Issues

Installs: 223

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 2

Open Issues: 0

pkg:composer/atphp/uuid

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

This package is auto-updated.

Last update: 2025-09-12 22:39:05 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();
  }
}