PHPackages                             appkweb/uuid - 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. appkweb/uuid

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

appkweb/uuid
============

Light lib to generate an universally unique identifier V4

1.0.0(1y ago)28MITPHPPHP ^8.1

Since Sep 11Pushed 1y agoCompare

[ Source](https://github.com/appkweb/uuid)[ Packagist](https://packagist.org/packages/appkweb/uuid)[ RSS](/packages/appkweb-uuid/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

uuid
====

[](#uuid)

Light lib to generate an universally unique identifier V4

Get started
===========

[](#get-started)

- `composer install appkweb/uuid`
- ```
    public function __construct(
          private readonly UuidService $uuidService,
      )
      {
      }

      /**
       * @return void
       * @throws Exception
       */
      public function __invoke():void
      {
          echo "{$this->uuidService->generate()}\n";
      }

    ```

Sources of Entropy
==================

[](#sources-of-entropy)

- Generates 16 random bytes with high entropy, which is excellent for value diversity.
- Provides a timestamp in milliseconds, adding a time dimension.
- Includes the process ID, which varies between processes but is stable during the execution of a specific process.
- Generates an additional random number, adding even more diversity.
- Generates a unique identifier based on the current time and a random number, used in the hash to add additional entropy.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

615d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ab7b259b18d1c2b90c047b4d5703bba5ebe780aa80feef2cce7b8cfdce081e6?d=identicon)[persval](/maintainers/persval)

---

Top Contributors

[![persval](https://avatars.githubusercontent.com/u/85700835?v=4)](https://github.com/persval "persval (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/appkweb-uuid/health.svg)

```
[![Health](https://phpackages.com/badges/appkweb-uuid/health.svg)](https://phpackages.com/packages/appkweb-uuid)
```

###  Alternatives

[andrewcarteruk/cryptokey

A command line tool for generating keys using a CSPRNG.

6124.2k](/packages/andrewcarteruk-cryptokey)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
