Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
U

uuid

> 开发工具
Open source

:snowflake: A PHP library for generating universally unique identifiers (UUIDs).

12.6K stars0 likes1 views
WebsiteGitHub

About

:snowflake: A PHP library for generating universally unique identifiers (UUIDs).

ramsey/uuid

A PHP library for generating and working with UUIDs.

ramsey/uuid is a PHP library for generating and working with universally unique identifiers (UUIDs).

This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.

Much inspiration for this library came from the Java and Python UUID libraries.

Installation

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

bash
composer require ramsey/uuid

Upgrading to Version 4

See the documentation for a thorough upgrade guide:

  • Upgrading ramsey/uuid Version 3 to 4

Documentation

Please see https://uuid.ramsey.dev for documentation, tips, examples, and frequently asked questions.

Contributing

Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.

Coordinated Disclosure

Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read SECURITY.md for instructions on submitting a vulnerability report.

ramsey/uuid for Enterprise

Available as part of the Tidelift Subscription.

The maintainers of ramsey/uuid and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.

Copyright and License

The ramsey/uuid library is copyright © Ben Ramsey and licensed for use under the MIT License (MIT). Please see LICENSE for more information.

Issues· 25 open

View all issuesOpen on GitHub
  • #536

    Uuid v7 generated in wrong order

    bughelp wantedUpdated Jul 6, 2026
  • #592

    Method 1 and method 3 for UUID v7

    enhancementUpdated Sep 16, 2025
  • #326

    Deprecate `Uuid#setFactory()`, use dedicated factories for `FieldInterface` and for UUID creation

    enhancementUpdated Jun 22, 2025
  • #531

    Inconsistent results between fromString and isValid methods.

    enhancementUpdated Apr 27, 2024
  • #520

    Use a PSR clock for internal time management?

    enhancementUpdated Oct 30, 2023
  • #259

    Serialized UUIDs don't store codec information

    bugUpdated Jan 16, 2023
  • #440

    How to search a partial uuid?

    questionUpdated Jan 16, 2023
  • #347

    Ramsey\Uuid\Uuid::uuid6() is not an instance of Ramsey\Uuid\Nonstandard\UuidV6 anymore

    Updated Sep 17, 2021
  • #327

    [4.1.0] UuidV1::fromString(...) is not instance of UuidV1 anymore - breaking change?

    bugUpdated Sep 15, 2021
  • #179

    Storing uuid byte sequence to postgres.

    documentationUpdated Mar 8, 2021

> Tags

PHPguididentifiersphpphp8

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具