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

Abandoned → [pascaldevink/shortuuid](/?search=pascaldevink%2Fshortuuid)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

ondram/shortuuid-php55
======================

PHP 5.5 compatible fork of library that generates concise, unambiguous, URL-safe UUIDs

1.0.2(10y ago)13.9kMITPHPPHP ^5.5 || ^7.0

Since Nov 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/OndraM/shortuuid)[ Packagist](https://packagist.org/packages/ondram/shortuuid-php55)[ RSS](/packages/ondram-shortuuid-php55/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

This is just PHP 5.5 compatible fork of [pascaldevink/shortuuid](https://github.com/pascaldevink/shortuuid)
-----------------------------------------------------------------------------------------------------------

[](#this-is-just-php-55-compatible-fork-of-pascaldevinkshortuuid)

*If you are on PHP 5.6+, use the [original source](https://github.com/pascaldevink/shortuuid).*

`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:

[![Build Status](https://camo.githubusercontent.com/7aa2f6959b85b05cfb1bd0698a963b9d7a199d7e6929fd74cff9c07e2d99bf1e/68747470733a2f2f7472617669732d63692e6f72672f6f6e6472616d2f73686f7274757569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ondram/shortuuid)

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 ondram/shortuuid-php55

```

Examples
========

[](#examples)

```
