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

ActiveLibrary

goatherd/goatherd-library-uuid
==============================

UUID generator for PHP 5.3 or newer

33.2k↓50%[9 issues](https://github.com/goatherd/uuid/issues)PHP

Since Nov 3Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Pure PHP UUID generator
=======================

[](#pure-php-uuid-generator)

Dual-licensed under BSDL (2-clause) or Apache 2.0 license

Derived from code by [Fredrik Lindberg](https://github.com/fredriklindberg).

Features
--------

[](#features)

Optimised for use with PHP 5.3+ and [psr](https://github.com/php-fig/fig-standards/tree/master/accepted)-2 compliant.

- Composer support ([packagist](https://packagist.org/packages/goatherd/goatherd-library-uuid))
- format as `FMT_STRING`, `FMT_BYTE` or `FMT_BINARY`
- psr-0 autoloading
- UUID version 1 (time), 3 (md5), 4 (random) and 5 (sha1)
- generates same UUIDs for little and big endian architecture
- [UnitTest](http://www.phpunit.de/manual/current/en/index.html)ed

Usage
-----

[](#usage)

```
use \Goatherd\Uuid\Factory as Uuid;

// default: version 5 string formated uuid
$uuid = Uuid::generate();

// version 4 byte formated uuid
$uuid = Uuid::generate(Uuid::UUID_RANDOM, Uuid::FMT_BYTE);

// get version 4 uuid from generator instance
$uuidGenerator = new \Goatherd\Uuid\V4();
$uuid = $uuidGenerator(Uuid::FMT_STRING);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c0597339c399bea9497c59ad70ec933e5a6c95458122649baf2dab18038ba88?d=identicon)[goatherd](/maintainers/goatherd)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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