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

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

juanpablom/php-uuid
===================

Generate a UUID v4 with PHP.

053PHP

Since Oct 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/juanpablom/php-uuid)[ Packagist](https://packagist.org/packages/juanpablom/php-uuid)[ RSS](/packages/juanpablom-php-uuid/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP UUID
========

[](#php-uuid)

Generate a UUID v4 (psuedo random) using PHP.

### Installation:

[](#installation)

Using a command line interface, change into the root directory of your project and then run the following command to install the package via Composer:

```
composer require juanpablom/php-uuid:dev-master

```

If using the Laravel framework, open app/config/app.php and add the following within your 'aliases' array:

```
'Uuid'            => 'J20\Uuid\Uuid',

```

### Usage:

[](#usage)

```
Uuid::v4();  // E.g. 5c01e9be-008f-45eb-811a-639df3c56f7d
Uuid::v4(false); // E.g. 5c01e9be008f45eb811a639df3c56f7d
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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://avatars.githubusercontent.com/u/1015461?v=4)[Juan Pablo Monaco](/maintainers/juanpablom)[@juanpablom](https://github.com/juanpablom)

---

Top Contributors

[![juanpablom](https://avatars.githubusercontent.com/u/1015461?v=4)](https://github.com/juanpablom "juanpablom (3 commits)")

### Embed Badge

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

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

###  Alternatives

[beyondcode/tinkerwell-helper

Open Tinkerwell from your Laravel project.

5999.1k](/packages/beyondcode-tinkerwell-helper)

PHPackages © 2026

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