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

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

zackkitzmiller/tiny
===================

A reversible base62 ID obfuscater.

1.3.0(9y ago)401208.4k↓37.5%21[1 PRs](https://github.com/zackkitzmiller/tiny-php/pulls)MITPHPPHP &gt;=5.3.0

Since Nov 30Pushed 6y ago18 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/55de6f345037948c7c0002272f5a4886a71039fd45907a7003f3227c4e078a33/68747470733a2f2f7472617669732d63692e6f72672f7a61636b6b69747a6d696c6c65722f74696e792d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/zackkitzmiller/tiny-php)[![Coverage Status](https://camo.githubusercontent.com/74a572ca6a7317807a92107441b450b5251dda7f6c484637fa99d92cb4b9e694/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7a61636b6b69747a6d696c6c65722f74696e792d7068702f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/zackkitzmiller/tiny-php?branch=master)

Tiny
====

[](#tiny)

A reversible base62 ID obfuscater

Authors
-------

[](#authors)

Originally by Jacob DeHart, with Ruby and Python ports by Kyle Bragger

Now maintained by [Zack Kitzmiller](https://github.com/zackkitzmiller).

Installation
------------

[](#installation)

Install via Composer

```
{
    "require": {
        "zackkitzmiller/tiny": "1.2.0"
    },
}
```

Usage
-----

[](#usage)

```
$tiny = new \ZackKitzmiller\Tiny('5SX0TEjkR1mLOw8Gvq2VyJxIFhgCAYidrclDWaM3so9bfzZpuUenKtP74QNH6B');

echo $tiny->to(5);
// E

echo $tiny->from('E');
// 5

echo $tiny->to(126);
// XX

echo $tiny->from('XX');
// 126

echo $tiny->to(999);
// vk

echo $tiny->from('vk');
// 999
```

Configuration
-------------

[](#configuration)

You must instanciate a new instance of Tiny with a random alpha-numeric set where each character must only be used exactly once. Do **NOT** change this once you start using Tiny, as you won't be able to reverse.

You can generate a random set from the commandline with `$ ./bin/genset`

Using laravel?
--------------

[](#using-laravel)

If you're using laravel and want to use a more laravel-like and cleaner syntax you only have to follow these steps.

First open your `app/config/app.php` file and scroll down to your providers and add

```
'providers' => array(
    ...
    'ZackKitzmiller\TinyServiceProvider',
)
```

and then this to aliases

```
'aliases' => array(
    ...
    'Tiny' => 'ZackKitzmiller\Facades\Tiny',
)
```

Lastly you run `php artisan config:publish zackkitzmiller/tiny` to publish the configuration file and then run `php artisan tiny:generate` to create a valid key.

### Usage in Laravel

[](#usage-in-laravel)

```
echo Tiny::to(999);
// echos vk

echo Tiny::from('E');
// echos 5
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~194 days

Recently: every ~279 days

Total

7

Last Release

3387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d4797a04f2867414b7510fe5cb90689f18a7cb51d148bfffc85f44366d1e5ee?d=identicon)[zackkitzmiller](/maintainers/zackkitzmiller)

---

Top Contributors

[![zackkitzmiller](https://avatars.githubusercontent.com/u/111536?v=4)](https://github.com/zackkitzmiller "zackkitzmiller (30 commits)")[![kylebragger](https://avatars.githubusercontent.com/u/36622?v=4)](https://github.com/kylebragger "kylebragger (22 commits)")[![daylerees](https://avatars.githubusercontent.com/u/207870?v=4)](https://github.com/daylerees "daylerees (4 commits)")[![lsemel](https://avatars.githubusercontent.com/u/163426?v=4)](https://github.com/lsemel "lsemel (3 commits)")[![juiceland](https://avatars.githubusercontent.com/u/1449819?v=4)](https://github.com/juiceland "juiceland (2 commits)")[![kylestev](https://avatars.githubusercontent.com/u/819571?v=4)](https://github.com/kylestev "kylestev (1 commits)")[![bryannielsen](https://avatars.githubusercontent.com/u/563996?v=4)](https://github.com/bryannielsen "bryannielsen (1 commits)")[![mikelbring](https://avatars.githubusercontent.com/u/455383?v=4)](https://github.com/mikelbring "mikelbring (1 commits)")[![msurguy](https://avatars.githubusercontent.com/u/585833?v=4)](https://github.com/msurguy "msurguy (1 commits)")[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (1 commits)")[![Weeblewonder](https://avatars.githubusercontent.com/u/865295?v=4)](https://github.com/Weeblewonder "Weeblewonder (1 commits)")[![dangreaves](https://avatars.githubusercontent.com/u/1036142?v=4)](https://github.com/dangreaves "dangreaves (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zackkitzmiller-tiny/health.svg)

```
[![Health](https://phpackages.com/badges/zackkitzmiller-tiny/health.svg)](https://phpackages.com/packages/zackkitzmiller-tiny)
```

###  Alternatives

[koala-framework/file-watcher

Library for watching for file system changes

1339.2k1](/packages/koala-framework-file-watcher)[rekurzia/slovak-holidays

Simple PHP library/helper for getting Slovak holidays

114.0k](/packages/rekurzia-slovak-holidays)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
