qlimix/uuid
Composer 安装命令:
composer require qlimix/uuid
包简介
Uuid value objects
关键字:
README 文档
README
A Uuid value object and an interface to generate an uuid.
Install
Using Composer:
$ composer require qlimix/uuid
usage
<?php use Qlimix\Id\Uuid\Uuid; $uuid = new Uuid('ecf72764-f657-4ae9-9183-135b72bbad32'); $uuid2 = new Uuid('ecf72764-f657-4ae9-9183-135b72bbad32'); $bytes = $uuid->getBytes(); $string = $uuid->toString(); $uuid = Uuid::fromBytes($bytes); if ($uuid->equals($uuid2)) { // the same }
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.
统计信息
- 总下载量: 421
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-16