PHPackages                             reshadman/bijective-shortener - 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. reshadman/bijective-shortener

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

reshadman/bijective-shortener
=============================

A Clean Bijective Base Converter for PHP

1.0(11y ago)34.3k↓100%1PHP

Since Mar 15Pushed 11y ago1 watchersCompare

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

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

Php Bijective Shortener
-----------------------

[](#php-bijective-shortener)

This package is a bijective shortener which shortens your unique integer identifier(like a mysql auto increment key) to a unique short string, the strategy simply makes a number with a longer base.

### Usage

[](#usage)

You can set the characters which you want to be included into the shortened string, by default a random string is set. You should note that this is not an encrypting solution it's just an encoding solution like base\_64 but in a bigger base, but by making a random sort of allowed characters you can gaurantee that it is impossible to guess a long number given a shortened string.

```
