PHPackages                             tungyao/uuid - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tungyao/uuid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tungyao/uuid
============

create uuid

0.5.2(5y ago)012Apache-2.0PHPPHP ^7.2 || ^8.0

Since Oct 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tungyao/cuuid)[ Packagist](https://packagist.org/packages/tungyao/uuid)[ RSS](/packages/tungyao-uuid/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (3)Used By (0)

使用方法
====

[](#使用方法)

- 安装 `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(); // 使用完成建议执行关闭方法
    }
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~142 days

Total

2

Last Release

1878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a2f49441c8caddc8c612b5e2154adbc2adbb6a8da5e472c8d3eb240058a5e6b?d=identicon)[tungyao](/maintainers/tungyao)

---

Top Contributors

[![tungyao](https://avatars.githubusercontent.com/u/20518510?v=4)](https://github.com/tungyao "tungyao (7 commits)")

### Embed Badge

![Health badge](/badges/tungyao-uuid/health.svg)

```
[![Health](https://phpackages.com/badges/tungyao-uuid/health.svg)](https://phpackages.com/packages/tungyao-uuid)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
