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

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

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

sebastian/uuid

最新稳定版本:1.0.2

Composer 安装命令:

composer require sebastian/uuid

包简介

Function for generating a UUID (as string)

关键字:

README 文档

README

Latest Stable Version CI Status codecov

sebastian/uuid

This package provides a single function: uuid(). This function uses PHP's random_bytes() function to generate a string that contains a 16-byte number written in hexadecimal and divided into five groups of characters (8-4-4-4-12).

Strings generated using the uuid() function can be used as Universally Unique Identifiers (UUIDs) in certain contexts.

Installation

You can add this library as a local, per-project dependency to your project using Composer:

composer require sebastian/uuid 

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

composer require --dev sebastian/uuid 

Usage

<?php declare(strict_types=1); use function SebastianBergmann\Uuid\uuid; var_dump(uuid());
string(36) "67b14e2a-17a4-43f7-aba5-859f7fc07b69" 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固