calicastle/cuid 问题修复 & 功能扩展

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

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

calicastle/cuid

最新稳定版本:v2.0.0

Composer 安装命令:

composer require calicastle/cuid

包简介

A CUID generator

README 文档

README

Packagist Version

A CUID (Collision Resistant Unique Identifier) is a method of creating a unique identifier that was developed by Eric Elliott. The purpose is to create unique IDs for use in web applications to better support horizontal scaling and sequential lookup performance.

Install

composer require calicastle/cuid

Example Usages

use CaliCastle\Cuid; Cuid::make(); // ckbe1q3gi000001jsfnm9cm81 Cuid::make('u'); // ukbe1qos1000201js74bwas75

Laravel Eloquent

use CaliCastle\Concerns\HasCuid; // Each user will have an id of something  // like "ukbe1q3gi000001jsfnm9cm81" class User extends Model { use HasCuid; /**  * Get the CUID prefix.  */ public static function getCuidPrefix(): string { return 'u'; } }

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固