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

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

maymeow/uuid
============

Class to generate RFC 4122 UUID version 3, 4 and 5

v2.1(5y ago)0118.8k↓24%[1 PRs](https://github.com/MayMeow/uuid/pulls)1MITPHPCI passing

Since Feb 14Pushed 3mo ago2 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (5)Used By (1)

UUID generator
==============

[](#uuid-generator)

*Message from creator*
*Thank you for visiting the **@maymeow/uuid** project. I found that this project was downloaded nearly 50k times. If you found this project useful I encourage you to star this project. Staring a prepository here on Github is one of the ways to show support for the project and can hepl to increase visibility and to let the community know that is a valuable. Thank you!*

*May*

Simple library to generating RFC 4122 version 3,4 and 5 UUID (Universaly Unique Identifier).

From [Wikipedia](https://en.wikipedia.org/wiki/Universally_unique_identifier):A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. Microsoft uses the term globally unique identifier (GUID), either as a synonym for UUID or to refer to a particular UUID variant.

Requirements
------------

[](#requirements)

- PHP 5.5 and up
- Composer

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

[](#installation)

```
composer require maymeow/uuid
```

Usage
-----

[](#usage)

### Generating UUID v3

[](#generating-uuid-v3)

Include uuid factory in your project

```
use MayMeow\UuidFactory;
```

To generate UUID version 3 from namespace and name:

```
// Version 3 uuid for DNS
$uuidv3 = Uuid::v3(Uuid::NAMESPACE_DNS, 'test.maymeow.click');

// From v2.0
$uuidv3 = UuidFactory::v3(UuidFactory::NAMESPACE_DNS, 'test.maymeow.click');
```

### Generating UUID v4

[](#generating-uuid-v4)

To generate UUID version 3 - random UUID

```
// Version 3 uuid for DNS
$uuidv4 = Uuid::v4();

// From v2.0
$uuidv4 = UuidFactory::v4();
```

### Generating UUID v5

[](#generating-uuid-v5)

To generate UUID version 5 from namespace and name:

```
// Version 5 uuid for DNS
$uuidv3 = Uuid::v5(Uuid::NAMESPACE_DNS, 'test.maymeow.click');

//From version 2.0 use UuidFactory instead of Uuid
$uuidv3 = UuidFactory::v5(UuidFactory::NAMESPACE_DNS, 'test.maymeow.click');
```

### Checking if uuid is valid

[](#checking-if-uuid-is-valid)

```
// Version 3 uuid for DNS
$response = Uuid::is_valid('454eb932-adf4-52a5-9285-31ccebc92e96');

// From v2.0
$response = UuidFactory::is_valid('454eb932-adf4-52a5-9285-31ccebc92e96');
```

Contributing
------------

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request.

Credits
-------

[](#credits)

[May Meow](https://github.com/MayMeow)

License
-------

[](#license)

[MIT](/LICENSE)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance53

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~617 days

Total

3

Last Release

2145d ago

Major Versions

v1.0 → v2.02018-09-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7c2bca298b9947b96e7d8ecc3e58d2a63caf97adb52d28c07dc8b9468cdabb6?d=identicon)[maymeow](/maintainers/maymeow)

---

Top Contributors

[![MayMeow](https://avatars.githubusercontent.com/u/3164256?v=4)](https://github.com/MayMeow "MayMeow (6 commits)")

---

Tags

phpuuid-generator

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yahnis-elsts/plugin-update-checker

A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.

2.5k1.5M79](/packages/yahnis-elsts-plugin-update-checker)[2bj/phanybar

Control AnyBar from your php

627.4M2](/packages/2bj-phanybar)[ghanem/rating

Rating system for Laravel

8615.5k](/packages/ghanem-rating)[microman/kirby-column-blocks

Use columns in block fields based on the layout field.

422.5k](/packages/microman-kirby-column-blocks)[bangerkuwranger/magento-2-1-3-category-limit-bug-workaround

Workaround for bug from v2.1.3 that arbitrarily limits indexed products in category to 500

1414.0k](/packages/bangerkuwranger-magento-2-1-3-category-limit-bug-workaround)

PHPackages © 2026

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