qlimix/uuid-ramsey

Ramsey uuid generator implementation

2.0.0 2020-11-14 12:39 UTC

This package is auto-updated.

Last update: 2024-10-14 21:51:39 UTC


README

Travis CI Coveralls Packagist MIT License

description.

Install

Using Composer:

$ composer require qlimix/uuid-ramsey

usage

<?php

use \Qlimix\Id\Uuid\Generator\RamseyUuidGenerator;
use Throwable;

$generator = new RamseyUuidGenerator();
try {
    $uuid = $generator->generate();
} catch (Throwable $exception) {
    // UuidGeneratorException
}

Testing

To run all unit tests locally with PHPUnit:

$ vendor/bin/phpunit

Quality

To ensure code quality run grumphp which will run all tools:

$ vendor/bin/grumphp run

Contributing

Please see CONTRIBUTING for details.