# ramsey/uuid

> A PHP library for generating and working with UUIDs

Source: https://talira.ai/catalog/ramsey-uuid-dpwy1dhv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / unique ids](https://talira.ai/categories/libraries/unique-ids)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Ben Ramsey](https://talira.ai/orgs/ben-ramsey.md)

ramsey/uuid is a PHP library for generating and working with universally unique identifiers. It creates RFC 9562 UUIDs of every version, 1 to 8 (time-based, name-based with MD5 or SHA-1, random, reordered-time and Unix-epoch-time), handles GUIDs and other nonstandard formats, converts version 7 UUIDs to ULIDs, and has codecs and guidance for storing UUIDs in a database as strings or bytes and as primary keys. It installs with Composer and is MIT licensed.

## Links

- Website: https://uuid.ramsey.dev/
- GitHub: https://github.com/ramsey/uuid
- Docs: https://uuid.ramsey.dev/en/stable/

## Problems it solves

- generate a UUID in PHP
- use time-ordered UUIDs as database primary keys in a PHP app
- convert a GUID to a UUID in PHP

## Features

- RFC 9562 UUID versions 1 to 8
- GUIDs and nonstandard UUIDs
- Version 7 to ULID conversion
- Ordered-time and timestamp-first COMB codecs for databases
- Custom factories, validators and calculators

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 0.91, adoption 0.82, momentum 0.56, community 0.84, backing 0.30, extensibility 0.00.

- last commit 14 days ago
- 47 commits in the last 90 days
- latest release 4.10.0 15 days ago
- 12.6k GitHub stars
- 122 contributors
- backed by Ben Ramsey

## Sources

[^1]: https://github.com/ramsey/uuid/blob/4.x/LICENSE (checked 27 Nov 2026)
