PHPackages                             duoshuo/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. duoshuo/uuid

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

duoshuo/uuid
============

A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID)

1039.2k6PHP

Since Sep 21Pushed 9y ago8 watchersCompare

[ Source](https://github.com/duoshuo/uuid)[ Packagist](https://packagist.org/packages/duoshuo/uuid)[ RSS](/packages/duoshuo-uuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

uuid
====

[](#uuid)

A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).

Dependency
----------

[](#dependency)

- PHP 5.4+
- 64-bit Linux System

Installation
------------

[](#installation)

```
Append dependency into composer.json
    ...
    "require": {
        ...
        "duoshuo/uuid": "dev-master"
    }
    ...

```

Usage
-----

[](#usage)

```
use Uuid\Uuid;

// At beginning, set your Ethernet Controller MAC address.
Uuid::setMAC('56:84:7a:fe:97:99');

// Version 1
Uuid::now();

// Version 1, first argument is timestamp, second argument is micro seconds.
Uuid::fromTimestamp(1410584506, 792720);

// Version 3
Uuid::fromMd5(md5($string));

// Version 4
Uuid::fromRandom();

// Version 5
Uuid::fromSha1(sha1($string));
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2515a1b7a6e85454fd15245886d030202007d1329757aa4bf0d0123f49789279?d=identicon)[shen2](/maintainers/shen2)

---

Top Contributors

[![maliemin-Mstar](https://avatars.githubusercontent.com/u/3032500?v=4)](https://github.com/maliemin-Mstar "maliemin-Mstar (6 commits)")[![shen2](https://avatars.githubusercontent.com/u/1523457?v=4)](https://github.com/shen2 "shen2 (4 commits)")[![guo-yu](https://avatars.githubusercontent.com/u/1269537?v=4)](https://github.com/guo-yu "guo-yu (1 commits)")

### Embed Badge

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

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

###  Alternatives

[aneeshikmat/yii2-time-down-counter

Widget for yii2, to start count down timer with a lot of options, This widget build dependence of timeDownCounter JS library

1546.0k](/packages/aneeshikmat-yii2-time-down-counter)[optimistdigital/nova-resizable

Simple Laravel Nova tool to enable column resizing

1818.9k](/packages/optimistdigital-nova-resizable)[haruncpi/laravel-simple-captcha

A laravel simple captcha package

1128.3k](/packages/haruncpi-laravel-simple-captcha)

PHPackages © 2026

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