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

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

aryehraber/statamic-uuid
========================

One of its kind; unlike anything else

v2.4.0(2mo ago)331.6k↓45.6%41MITPHPCI failing

Since Sep 29Pushed 2y ago2 watchersCompare

[ Source](https://github.com/aryehraber/statamic-uuid)[ Packagist](https://packagist.org/packages/aryehraber/statamic-uuid)[ Docs](https://github.com/aryehraber/statamic-uuid)[ GitHub Sponsors](https://github.com/aryehraber)[ RSS](/packages/aryehraber-statamic-uuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (10)Used By (1)

Uuid (Statamic 3)
=================

[](#uuid-statamic-3)

**One of its kind; unlike anything else**

This fieldtype auto-generates UUIDs for empty fields. This can be useful if you need unique, persistent IDs for each row in a Replicator, for example.

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

[](#installation)

Install the addon via composer:

```
composer require aryehraber/statamic-uuid

```

Publish the fieldtype assets:

```
php please vendor:publish --tag=uuid

```

Usage
-----

[](#usage)

Inside your blueprint, simply use `type: uuid` and a UUID will be generated for that field if it's blank. Already occupied fields (including previously generated UUIDs) will not be overwritten.

#### Settings

[](#settings)

NameDefaultDescription`hidden``false`Hide the field from the CP while still generating a UUID.`read_only``false`Set the input to read-only, stopping the user from editing the field.`id_prefix``''`Add a prefix to the ID.`id_type``uuid`Set the underlying ID generator, options: `uuid` &amp; `nanoid`.`alphabet``null`Set a custom alphabet when using `nanoid`.`size``null`Set the max character limit when using `nanoid`.### Example:

[](#example)

**Blueprint**

```
fields:
  -
    handle: sections
    field:
      type: replicator
      sets:
        section:
          fields:
            -
              handle: uuid
              field:
                type: uuid
            -
              handle: fields
              field:
                type: replicator
                sets:
                  value:
                    fields:
                      -
                        handle: uuid
                        field:
                          type: uuid
                          id_type: nanoid
                          alphabet: ABCD1234
                          size: 5
```

**Output**

```
sections:
  -
    uuid: 026fd166-8638-4c21-9e38-730b4ab3d4ea
    type: section
    fields:
      -
        uuid: A4C11
        type: value
  -
    uuid: 4a7ce0b0-0483-42d9-a7b0-ce0201dd9c84
    type: section
    fields:
      -
        uuid: B1CB3
        type: value
      -
        uuid: 41CD1
        type: value
```

Credits
-------

[](#credits)

Originally built at [Series Eight](https://github.com/serieseight), now maintained by [Aryeh Raber](https://github.com/aryehraber).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance49

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90.7% 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 ~284 days

Recently: every ~466 days

Total

8

Last Release

65d ago

### Community

Maintainers

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

---

Top Contributors

[![aryehraber](https://avatars.githubusercontent.com/u/5065331?v=4)](https://github.com/aryehraber "aryehraber (39 commits)")[![edalzell](https://avatars.githubusercontent.com/u/6069653?v=4)](https://github.com/edalzell "edalzell (4 commits)")

---

Tags

uuidstatamicfieldtype

### Embed Badge

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

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

###  Alternatives

[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2912.8k](/packages/aerni-livewire-forms)[mitydigital/feedamic

A fully-featured RSS and Atom feed generator for Statamic.

1064.0k](/packages/mitydigital-feedamic)

PHPackages © 2026

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