PHPackages                             phpexperts/conciseuuid - 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. phpexperts/conciseuuid

ActiveLibrary

phpexperts/conciseuuid
======================

An Eloquent model for using concise UUIDs (base62) as keys.

v2.5.0(4y ago)910.3k2MITPHPPHP &gt;=7.2.5

Since Nov 12Pushed 4y ago2 watchersCompare

[ Source](https://github.com/phpexpertsinc/ConciseUuid)[ Packagist](https://packagist.org/packages/phpexperts/conciseuuid)[ Docs](https://github.com/phpexperts/conciseuuid)[ RSS](/packages/phpexperts-conciseuuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (14)Used By (0)

ConciseUuid
===========

[](#conciseuuid)

ConciseUuid is an Eloquent Model that uses a concise UUIDv4 as the primary key.

A normal UUID is 36 characters and looks like:

```
d318fb95-5b49-47ca-abd5-326a60524e70

```

This is very long, and in base16, there is a lot of unnecessary space.

ConciseUuid takes this, strips out the "-" and converts the base16 into base62 (0-9, a-z, A-Z). Here is the Concise version of the above UUID:

```
Old: d318fb95-5b49-47ca-abd5-326a60524e70
New: 6QKnU3XheQMk3E6Vq1B4l6

```

As you can see, it is much more concise: 15 characters less!

Because of how the UUIDv4 algorithm is specified, a UUID will never begin with anything other than a number (0-9). So if you want a special class of UUIDs, pass in `true`. These UUIDs will *always* begin with a letter, letting you quickly differentiate them from normal UUIDs.

```
echo ConciseUuid::generateNewId(true);
// Output: rEBzkc6s67JU3kI7ZuA7TU

```

Usage
-----

[](#usage)

```
SQL:
CREATE TABLE my_model (id char(22) primary key);

PHP:
namespace PHPExperts\ConciseUuid\ConciseUuidModel;

class MyModel extends ConciseUuidModel
{
}

For your users table:
namespace PHPExperts\ConciseUuid\ConciseUuidAuthModel;

class User extends ConciseUuidAuthModel
{
}

```

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

[](#installation)

Via Composer

```
$ composer require phpexperts/conciseuuid
```

Having the GMP extension enabled **really** improves the execution time of this package.

Use cases
---------

[](#use-cases)

✔ Generate new id function will always return 22 characters long string ✔ Normal ids start with a number ✔ System generated ids start with a letter ✔ Can convert to a concise uuid ✔ Can convert to a uuid ✔ Can convert to a uuid without dashes ✔ Can generate new version 4 uuids ✔ Can strip slashes from uuids

Change log
----------

[](#change-log)

Please see the [changelog](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please take a look at [contributing.md](contributing.md) if you want to make improvements.

Credits
-------

[](#credits)

- [Theodore R. Smith](https://www.phpexperts.pro/%5D)
- [Rishi Ramawat](https://github.com/rishi-ramawat)
- [Smijo Thekkudan](https://github.com/smijo149)

License
-------

[](#license)

MIT license. Please see the [license file](license.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~122 days

Total

13

Last Release

1644d ago

Major Versions

v1.2.1 → v2.0.x-dev2019-10-21

v2.0.4 → v3.0.x-dev2021-11-07

PHP version history (3 changes)v1.1.0PHP &gt;=7.0

v2.0.2PHP ^7.2.5

v2.0.3PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f3a2dd16766f6b03c330e65aaca9dfb97f1bbbb41c5e2af5681f58f670b7917?d=identicon)[hopeseekr](/maintainers/hopeseekr)

---

Top Contributors

[![hopeseekr](https://avatars.githubusercontent.com/u/1125541?v=4)](https://github.com/hopeseekr "hopeseekr (23 commits)")

---

Tags

uuidlaravelConciseUuid

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpexperts-conciseuuid/health.svg)

```
[![Health](https://phpackages.com/badges/phpexperts-conciseuuid/health.svg)](https://phpackages.com/packages/phpexperts-conciseuuid)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)

PHPackages © 2026

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