ramsey / uuid
A PHP library for generating and working with universally unique identifiers (UUIDs).
Installs: 510 896 716
Dependents: 3 311
Suggesters: 101
Security: 0
Stars: 12 468
Watchers: 138
Forks: 501
Open Issues: 26
Requires
- php: ^8.0
- ext-json: *
- brick/math: ^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12
- ramsey/collection: ^1.2 || ^2.0
Requires (Dev)
- captainhook/captainhook: ^5.10
- captainhook/plugin-composer: ^5.3
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.0
- doctrine/annotations: ^1.8
- ergebnis/composer-normalize: ^2.15
- mockery/mockery: ^1.3
- paragonie/random-lib: ^2
- php-mock/php-mock: ^2.2
- php-mock/php-mock-mockery: ^1.3
- php-parallel-lint/php-parallel-lint: ^1.1
- phpbench/phpbench: ^1.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.8
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^8.5 || ^9
- ramsey/composer-repl: ^1.4
- slevomat/coding-standard: ^8.4
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^4.9
Suggests
- ext-bcmath: Enables faster math with arbitrary-precision integers using BCMath.
- ext-gmp: Enables faster math with arbitrary-precision integers using GMP.
- ext-uuid: Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.
- paragonie/random-lib: Provides RandomLib for use with the RandomLibAdapter
- ramsey/uuid-doctrine: Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.
Replaces
- rhumsaa/uuid: 4.7.6
- 5.x-dev
- 4.x-dev
- 4.7.6
- 4.7.5
- 4.7.4
- 4.7.3
- 4.7.2
- 4.7.1
- 4.7.0
- 4.6.0
- 4.5.1
- 4.5.0
- 4.4.0
- 4.3.1
- 4.3.0
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-beta2
- 4.0.0-beta1
- 4.0.0-alpha5
- 4.0.0-alpha4
- 4.0.0-alpha3
- 4.0.0-alpha2
- 4.0.0-alpha1
- 3.x-dev
- 3.9.7
- 3.9.6
- 3.9.5
- 3.9.4
- 3.9.3
- 3.9.2
- 3.9.1
- 3.9.0
- 3.8.0
- 3.7.3
- 3.7.2
- 3.7.1
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 3.0.0-beta1
- 3.0.0-alpha3
- 3.0.0-alpha2
- 3.0.0-alpha1
- 2.9.0
- 2.8.4
- 2.8.3
- 2.8.2
- 2.8.1
- 2.8.0
- 2.7.4
- 2.7.3
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/github_actions/codecov/codecov-action-5.0.2
This package is auto-updated.
Last update: 2024-11-18 22:03:36 UTC
README
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
:
composer require ramsey/uuid
Upgrading to Version 4
See the documentation for a thorough upgrade guide:
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.