承接 duoshuo/uuid 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

duoshuo/uuid

Composer 安装命令:

composer require duoshuo/uuid

包简介

A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID)

README 文档

README

A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).

Dependency

  • PHP 5.4+
  • 64-bit Linux System

Installation

Append dependency into composer.json
    ...
    "require": {
        ...
        "duoshuo/uuid": "dev-master"
    }
    ...

Usage

use Uuid\Uuid;

// At beginning, set your Ethernet Controller MAC address.
Uuid::setMAC('56:84:7a:fe:97:99');

// Version 1
Uuid::now();

// Version 1, first argument is timestamp, second argument is micro seconds.
Uuid::fromTimestamp(1410584506, 792720);

// Version 3
Uuid::fromMd5(md5($string));

// Version 4
Uuid::fromRandom();

// Version 5
Uuid::fromSha1(sha1($string));	

统计信息

  • 总下载量: 39.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 8
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-12