Download the PHP package keiko/uuid-shortener without Composer
On this page you can find all versions of the php package keiko/uuid-shortener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keiko/uuid-shortener
More information about keiko/uuid-shortener
Files in keiko/uuid-shortener
Package uuid-shortener
Short Description A simple shortener library for RFC 4122 compatible UUIDs. Change your 36 chars long UUID into it's shorter equivalent.
License MIT
Homepage https://github.com/mgrajcarek/uuid-shortener
Informations about the package uuid-shortener
UUID SHORTENER
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 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
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:
Example
You can reverse the process and expand your short UUID back to hexadecimal value.
Performance
In order to get optimal performance from this library, it is endorsed that you run ext-gmp
in your system.
Keiko\Uuid\Shortener\Shortener::make()
will pick a GMP-compatible shortener or a fallback
shortener based on your system dependencies.
Plans
UUID Shortener is not connected with any UUID generator library. It also does not generate new UUIDs. It has only one purpose - transform your long, hexadecimal IDs (no matter where they come from), into a shorter and easier to read set of characters. In the near future additional service will be added, which will be able to generate short UUIDs in companion with most popular UUID generators.