承接 robertboeser/robo-id 相关项目开发

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

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

robertboeser/robo-id

最新稳定版本:v1.2.0

Composer 安装命令:

composer require robertboeser/robo-id

包简介

README 文档

README

Format

A RoboID has two parts, one time based (T) and one random (R) part. The time based part is based on the Unix timestamp and consists of 45 bits. The random part consists of 30 bits (short version) or 80 bits (long version).

The long version will be uuid compatible. That means, that in the random part the bits 0-3 (uuid version) are set to 'B' and the bits 16-17 (uuid variant) are set to 10b.

There are three different string representations and one as json. Every implementation needs to accept and export the json representation.

HEX

S: TTTTTTTTTTTT-RRRRRRRR L: TTTTTTTTTTTT-RRRRRRRRRRRRRRRRRRRR X: TTTTTTTTTTTT-RRRRRRRRRRRRRRRRRRRR-XXXXXXXXXXXXXXXXXXXX The time based part is left padded with zeros to 48 bits. The random part is right padded with zeros to 32 or 80 bits.

Base32

S: TTTTTTTTT-RRRRRR L: TTTTTTTTT-RRRRRRRRRRRRRRRR X: TTTTTTTTT-RRRRRRRRRRRRRRRR-XXXXXXXXXXXXXXXX The time based and the random part are encoded using base32 crockford charset. No padding is necessary using this representation

UUID

AAAAAAAA-BBBB-VCCC-WDDD-EEEEEEEEEEEE A and B together build the time based part. The time based part is left padded with 100b to 48 bits. This ensures that the ID starts with a character different than '0'. V is hard coded to 'B'. In long version C to E together build the random part. In short version C and D are filled with zeros. The random part is encoded in E, right padded with zeros.

JSON

{ "v": "S|L|X", // version "t": "time based part", // hex encoded "r": "random part", // hex encoded "x": "extended part" // hex encoded }

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固