PHPackages                             pascaldevink/shortuuid - 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. pascaldevink/shortuuid

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

pascaldevink/shortuuid
======================

PHP 7.4+ library that generates concise, unambiguous, URL-safe UUIDs

4.0.0(3y ago)5951.8M—8.5%29[10 PRs](https://github.com/pascaldevink/shortuuid/pulls)15MITPHPPHP ^7.4|^8.0|^8.1|^8.2

Since Nov 3Pushed 2y ago12 watchersCompare

[ Source](https://github.com/pascaldevink/shortuuid)[ Packagist](https://packagist.org/packages/pascaldevink/shortuuid)[ RSS](/packages/pascaldevink-shortuuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (13)Used By (15)

`shortuuid` is a simple php library that generates concise, unambiguous, URL-safe UUIDs.

Often, one needs to use non-sequential IDs in places where users will see them, but the IDs must be as concise and easy to use as possible. shortuuid solves this problem by translating generated uuids to base57 using lowercase and uppercase letters and digits, and removing similar-looking characters such as l, 1, I, O and 0.

This library is a port of it's python counter-part by Stochastic Technologies:

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 pascaldevink/shortuuid

```

Examples
========

[](#examples)

```
