PHPackages                             keiko/uuid-shortener - 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. keiko/uuid-shortener

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

keiko/uuid-shortener
====================

A simple shortener library for RFC 4122 compatible UUIDs. Change your 36 chars long UUID into it's shorter equivalent.

v1.2.0(8mo ago)150215.4k—1.3%7[1 PRs](https://github.com/mgrajcarek/uuid-shortener/pulls)2MITPHPPHP ^8.1CI passing

Since May 30Pushed 8mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (25)Used By (2)

UUID SHORTENER
==============

[](#uuid-shortener)

[![Minimum PHP Version](https://camo.githubusercontent.com/ef363a5a30025ffef1857918c40fa01e97f03929e5f87d12a14bf334a7de9220/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d3838393242462e737667)](https://php.net/)[![Build Status](https://github.com/mgrajcarek/uuid-shortener/actions/workflows/build.yaml/badge.svg?branch=master)](https://github.com/mgrajcarek/uuid-shortener/actions/workflows/build.yaml)

A simple shortener library for RFC 4122 compatible UUIDs. Change your 36 chars long UUID into it's shorter equivalent.

Key concept and inspiration taken from [pascaldevink/shortuuid](https://github.com/pascaldevink/shortuuid) library. If you just need to generate short UUIDs the easy way, I encourage you to check his work. If you expect perfomance, this library uses `ext-gmp` to speed up the process.

Installation
============

[](#installation)

The preferred method of installation is via [Packagist](https://packagist.org/) and [Composer](https://getcomposer.org). Run the following command to install the package and add it as a requirement to your project's composer.json:

```
composer require keiko/uuid-shortener

```

Example
=======

[](#example)

```
