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

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

takeawaytown/laravel-uuid
=========================

A package for using 'Universally Unique Identifiers' in Laravel.

0.0.5(8y ago)022[4 issues](https://github.com/takeawaytown/laravel-uuid/issues)MITPHPPHP ~5.6|~7.0

Since Nov 14Pushed 8y ago2 watchersCompare

[ Source](https://github.com/takeawaytown/laravel-uuid)[ Packagist](https://packagist.org/packages/takeawaytown/laravel-uuid)[ RSS](/packages/takeawaytown-laravel-uuid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (8)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/9c2f9f1513d7a8c0e35e73aaf9b9e0488ab0674d335d679b7142ff468d9619bc/68747470733a2f2f7472617669732d63692e6f72672f74616b6561776179746f776e2f6c61726176656c2d757569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/takeawaytown/laravel-uuid)[![Maintainability](https://camo.githubusercontent.com/ac0e30380cbaf572f024776e935a979f246e0e0115fc4066f0c72ef617d313ef/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37356635353330343837303536343362303338372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/takeawaytown/laravel-uuid/maintainability)[![Test Coverage](https://camo.githubusercontent.com/f985def129cece601e8e294f3373a13131e473686ab7aee91bd7f36e2a1c8e1d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37356635353330343837303536343362303338372f746573745f636f766572616765)](https://codeclimate.com/github/takeawaytown/laravel-uuid/test_coverage)

Laravel UUID
============

[](#laravel-uuid)

A package for working with UUID values in Laravel.

You can use the package to generate and validate version 1, 3, 4 and 5 UUID identifiers.

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

[](#installation)

To install, simply type the following at your bash prompt:

```
composer require takeawaytown/laravel-uuid

```

The package automatically registers the Service Provider and Alias in Laravel 5.5 and above. If using Laravel &lt;= 5.4, then you must manually add them.

For the Service Provider, add the following to your app config file:

```
TakeawayTown\LaravelUuid\Providers\UuidServiceProvider::class,

```

For the Alias, add the following to your app config:

```
'UUID' => TakeawayTown\LaravelUuid\Classes\Uuid::class,

```

Basic Usage
-----------

[](#basic-usage)

The most basic generator usage is:

```
Uuid::generate();

```

This will generate a UUID object, which will be 'Version 1' and will use a random MAC address.

You can also generate a UUID string using type-hinting or using a method. Either of the following is exactly the same:

```
(string) Uuid::generate();
Uuid::generate()->string;

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.4% 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 ~0 days

Total

5

Last Release

3101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81492d05f48d140d9b893ba28c2e13f0c8e551bcc71e2786854e1d23f4f70198?d=identicon)[takeawaytown](/maintainers/takeawaytown)

---

Top Contributors

[![codetheorist](https://avatars.githubusercontent.com/u/22813671?v=4)](https://github.com/codetheorist "codetheorist (60 commits)")[![takeawaytown](https://avatars.githubusercontent.com/u/30607339?v=4)](https://github.com/takeawaytown "takeawaytown (1 commits)")

---

Tags

laravelvalidatorgeneratoruuid

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[webpatser/laravel-uuid

Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.

1.8k17.3M129](/packages/webpatser-laravel-uuid)[emadadly/laravel-uuid

laravel uuid a simple, automatic UUID generator for any model based on Laravel.

120415.9k3](/packages/emadadly-laravel-uuid)[dcblogdev/laravel-module-generator

Generate Laravel Modules from a template.

7710.1k1](/packages/dcblogdev-laravel-module-generator)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

295.1k](/packages/linkxtr-laravel-qrcode)[akira/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

431.4k](/packages/akira-laravel-qrcode)

PHPackages © 2026

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