tungyao/uuid

create uuid

Maintainers

Details

github.com/tungyao/cuuid

Source

Issues

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/tungyao/uuid

0.5.2 2021-03-18 07:10 UTC

This package is auto-updated.

Last update: 2025-12-18 17:43:09 UTC


README

  • 安装 composer require tungyao/uuid
  • 使用
use Tungyao\Uuid\Cuuid;

class Create {

    public function __construct() {
        $cuuid  = new Cuuid();
        $newId = $cuuid->get(); // 每执行一次都会生成新的id => 5416430809790283776
        $newId = $cuuid->get();
        $shortLink  = $cuuid->link(); // 会生成一个唯一短链接 => 6HCtzdPuBLG
        $cuuid->close(); // 使用完成建议执行关闭方法
    }
}