PHPackages                             sudiptpa/guid - 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. sudiptpa/guid

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

sudiptpa/guid
=============

A minimal GUID generator package for PHP.

v3.0.0(4mo ago)14144.5k—6.4%71MITPHPPHP ^8.2CI failing

Since Oct 6Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/sudiptpa/guid)[ Packagist](https://packagist.org/packages/sudiptpa/guid)[ Docs](https://github.com/sudiptpa/guid)[ RSS](/packages/sudiptpa-guid/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (1)

GUID (Globally Unique Identifier) for PHP
=========================================

[](#guid-globally-unique-identifier-for-php)

A minimal, dependency-free GUID (Globally Unique Identifier) generator for PHP with a tiny runtime footprint. Frequently also called UUIDs (Universally Unique Identifiers).

[![CI](https://github.com/sudiptpa/guid/actions/workflows/ci.yml/badge.svg)](https://github.com/sudiptpa/guid/actions/workflows/ci.yml)[![Latest Version](https://camo.githubusercontent.com/95321b94446dea777c9c226d23952917d8cd6bb549418ebf37ae84ebce2bb29f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756469707470612f67756964)](https://packagist.org/packages/sudiptpa/guid)[![Downloads](https://camo.githubusercontent.com/95fc15a83bdf19fedc6ffc045d17b06fd5fe1def414cf38eda9c58dad15ade05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756469707470612f67756964)](https://packagist.org/packages/sudiptpa/guid)[![License](https://camo.githubusercontent.com/4473971e488c4dc5fce31f1139f87de148a9cf544e7fc3f744d7012a22386027/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73756469707470612f67756964)](https://packagist.org/packages/sudiptpa/guid)[![PHP Version](https://camo.githubusercontent.com/6503df80508be718b5f9c4a699750f12731c9dd95d7ba2cae1c938e47425d06b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73756469707470612f67756964)](https://packagist.org/packages/sudiptpa/guid)

---

[![Sponsor](https://camo.githubusercontent.com/d57b8ff0c3e08877e313deccbfe103a9cbcc5121e4d381986c7f56fb19a08b71/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d47697448756225323053706f6e736f72732d6561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465)](https://github.com/sponsors/sudiptpa)

If this package has been useful to you, GitHub Sponsors is a simple way to support ongoing maintenance, improvements, and future releases.

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

[](#requirements)

- PHP 8.2+

Compatibility
-------------

[](#compatibility)

- Supported and CI-tested on PHP 8.2, 8.3, 8.4, and 8.5.
- Need legacy PHP support below 8.2? Use `sudiptpa/guid:^2.0`.

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

[](#installation)

```
composer require sudiptpa/guid
```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

```
