承接 nurfachmi/cuid2 相关项目开发

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

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

nurfachmi/cuid2

最新稳定版本:0.1.2

Composer 安装命令:

composer require nurfachmi/cuid2

包简介

A PHP library for generating collision-resistant ids (CUIDs).

README 文档

README

GitHub Workflow Status (with event)

PHP Version Packagist Downloads GitHub

A PHP implementation of collision-resistant ids (prior). You can read more about CUIDs from the official project website.

Getting Started

You can install nurfachmi/cuid2 as a composer package:

composer require nurfachmi/cuid2

Quick Example

<?php
require_once 'vendor/autoload.php';

// new (default length of 24)
$cuid = new Nurfachmi\Cuid2\Cuid2();

// implicit casting
echo $cuid; // hw8kkckkgwkk0oo0gkw0o8sg

// explicit casting
echo $cuid->toString(); // hw8kkckkgwkk0oo0gkw0o8sg

// new (with custom length)
$cuid = new Nurfachmi\Cuid2\Cuid2(10);
echo $cuid; // psk8844ck4

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-31