This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Encodes integers as short string and back. Useful in URL shorteners.

0.0.2 2013-03-14 17:13 UTC

This package is auto-updated.

Last update: 2021-07-29 00:57:47 UTC


Currently this is a port of jakoubek/php-recordlocator.

It has been tidied up, namespaced and proper Composer support added.

Build Status


$shortener = new cogpowered\Shortener\Shortener;
echo $shortener->encode(81906);
echo $shortener->decode('4IZL');