maarheeze/uuid
最新稳定版本:1.1.0
Composer 安装命令:
composer require maarheeze/uuid
包简介
simple uuid value object
README 文档
README
A simple UUID value object for PHP.
Requirements
- PHP 8.2+
Installation
composer require maarheeze/uuid
Usage
Generating a UUID
$uuid = Uuid::generate();
Creating from a string
$uuid = Uuid::fromString('018e4c7a-3b2f-7000-8000-000000000000');
String output
(string) $uuid; $uuid->toString();
JSON
$uuid->jsonSerialize(); json_encode($uuid); Uuid::jsonDeserialize(['uuid' => '018e4c7a-3b2f-7000-8000-000000000000']);
License
MIT
统计信息
- 总下载量: 60
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-17