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

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

jolicode/ffi-uuid
=================

Bind libuuid to PHP thanks to FFI

v1.0.1(5y ago)40127.3k↑1116.7%2MITPHPPHP &gt;= 7.4

Since Nov 28Pushed 5y ago13 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

FFI libuuid
===========

[](#ffi-libuuid)

This repository contains a binding of the `libuuid` library with PHP thanks to PHP/FFI. So this requires PHP 7.4 to run.

For now this is mostly a proof of concept to demonstrate the power of the FFI extension. In future, if and when the performance of FFI improves, it could be a good alternative to the [PECL UUID package](https://pecl.php.net/package/uuid).

Further details can be found in the following blog post [PHP 7.4 FFI: What you need to know ](https://jolicode.com/blog/php-7-4-ffi-what-you-need-to-know).

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

[](#installation)

```
composer require jolicode/ffi-uuid
```

Usage
-----

[](#usage)

```
use JoliCode\Uuid\UuidGenerator;

$generator = new UuidGenerator();

echo $generator->v1();
echo $generator->v3('something');
echo $generator->v4();
echo $generator->v5('something');
```

Resources
---------

[](#resources)

- Uuid: [https://en.wikipedia.org/wiki/Universally\_unique\_identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier)
- libuuid:
- Inspiration:

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.3% 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

Every ~405 days

Total

2

Last Release

1958d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

v1.0.1PHP &gt;= 7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebbe48a3e30540f24739602c197ad1212aeb81af96077aed5eb2a300267306bd?d=identicon)[damienalexandre](/maintainers/damienalexandre)

![](https://www.gravatar.com/avatar/c6547f10fb51d1e84f1d5371fb44ee3593c7791432471f0b0adabfb29a18c507?d=identicon)[xavierlacot](/maintainers/xavierlacot)

![](https://www.gravatar.com/avatar/629679362005181c13397e4e0adc1a84fd9c0d8826e0165b92c766d629fd6be5?d=identicon)[ternel](/maintainers/ternel)

---

Top Contributors

[![lyrixx](https://avatars.githubusercontent.com/u/408368?v=4)](https://github.com/lyrixx "lyrixx (26 commits)")[![Korbeil](https://avatars.githubusercontent.com/u/944409?v=4)](https://github.com/Korbeil "Korbeil (20 commits)")[![bdsl](https://avatars.githubusercontent.com/u/159481?v=4)](https://github.com/bdsl "bdsl (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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