PHPackages                             fixwa/tiny-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. fixwa/tiny-uuid

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

fixwa/tiny-uuid
===============

This library generates a short alphanumeric unique ID.

1.1(6y ago)149MITPHPCI failing

Since May 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/fixwa/tiny-uuid)[ Packagist](https://packagist.org/packages/fixwa/tiny-uuid)[ RSS](/packages/fixwa-tiny-uuid/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Tiny UUID
=========

[](#tiny-uuid)

Generates a Random "Mixed Case" string of the specified length consisting only of numbers and letters, e.g: **crkeG**, **zL6VY**, etc.

This utility can be used to generate an alphanumeric ID for URLs when you don't want visitors to know the internals of your database (the ID of a record), and instead a random ID will be exposed.

For example:

Having this URL: we can change to:

Usage
=====

[](#usage)

Add the library as a dependency:

> $ composer require fixwa/tiny-uuid

Then in your code you would call it like the following:

```
