PHPackages                             projectsaturnstudios/quickuuid - 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. projectsaturnstudios/quickuuid

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

projectsaturnstudios/quickuuid
==============================

Simple helper functions to easily generate UUIDs (v4 and v5).

0.2.0(1y ago)03878MITPHPPHP ^8.2

Since Jul 2Pushed 1y agoCompare

[ Source](https://github.com/projectsaturnstudios/quickuuid)[ Packagist](https://packagist.org/packages/projectsaturnstudios/quickuuid)[ RSS](/packages/projectsaturnstudios-quickuuid/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (3)Versions (2)Used By (8)

ProjectSaturnStudios/QuickUUID
==============================

[](#projectsaturnstudiosquickuuid)

A simple PHP library providing helper functions to easily generate version 4 (random) and version 5 (name-based, SHA-1) UUIDs. It leverages the robust `ramsey/uuid` package under the hood.

Features
--------

[](#features)

- Generate UUIDv4.
- Generate UUIDv5 with a specified name and an optional namespace.
- A primary helper `new_uuid()` that intelligently calls either v4 or v5 generation based on provided arguments.
- Configurable default namespace for UUIDv5 generation.

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

[](#installation)

Install the package via Composer:

```
composer require projectsaturnstudios/quickuuid
```

Basic Usage
-----------

[](#basic-usage)

```
