hraw/uuid
最新稳定版本:v1.0.1
Composer 安装命令:
composer require hraw/uuid
包简介
A simple and lightweight class to create and validate uuid version 4 in PHP.
关键字:
README 文档
README
A simple and lightweight class to create and validate uuid version 4 in PHP.
Requirements
- PHP 7.0 or higher
- Composer for installation
Installation
composer require hraw/uuid
Implementation
<?php require_once __DIR__.'/vendor/autoload.php'; use Hraw\Uuid\UuidV4; //Generating a version 4 uuid. echo UuidV4::get(); //Output -> 42ebbe3f-f47e-43d6-b2b2-3b19f5fa6a20 //Validating a version 4 uuid. UuidV4::validate('42ebbe3f-f47e-43d6-b2b2-3b19f5fa6a20'); //Output -> true/false
Run Dev Server
php -S localhost:8000
Other Frameworks
If you want to integrate it into any other composer based framework/project then simple install it via composer and follow the implementation section.
统计信息
- 总下载量: 641
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-22