hraw/uuid 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固