PHPackages                             devknown/alpha-id - 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. devknown/alpha-id

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

devknown/alpha-id
=================

Convert any integer to a short alphanumeric version.

0.0.1(2y ago)213MITPHPPHP &gt;=7.3

Since Jun 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/devknown/alpha-id)[ Packagist](https://packagist.org/packages/devknown/alpha-id)[ RSS](/packages/devknown-alpha-id/feed)WikiDiscussions main Synced 1mo ago

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

#### AlphaID - Convert any integer to a short alphanumeric version

[](#alphaid---convert-any-integer-to-a-short-alphanumeric-version)

 [ ![Release](https://camo.githubusercontent.com/ae8bd2d3a67095ee27b79b71f543d26ebfcd3a71fbbc48a6068ec92da59fa2a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6465766b6e6f776e2f616c7068612d6964) ](https://github.com/devknown/alpha-id/releases)[ ![PHP Composer](https://github.com/devknown/alpha-id/actions/workflows/php.yml/badge.svg) ](https://github.com/devknown/alpha-id/actions/workflows/php.yml)[ ![License](https://camo.githubusercontent.com/28d8ad5e5c539e0711196caa95f6348edba5308e565c8c44ec25548eff8a08d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6465766b6e6f776e2f616c7068612d6964) ](https://github.com/devknown/alpha-id/blob/main/LICENSE)[ ![PHP version](https://camo.githubusercontent.com/5e0af1486c0ad3edf7c96d79cfb99108aba2a2b66db5ccd2f2e205c055c4efa7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6465766b6e6f776e2f616c7068612d69642f706870)](https://packagist.org/packages/devknown/alpha-id)

AlphaID
=======

[](#alphaid)

AlphaID let you convert any integer to a short alphanumeric version. It can be useful for generating short, unique, and obfuscated identifiers.

AlphaID Library Versions
------------------------

[](#alphaid-library-versions)

These versions should all function harmoniously, allowing for encoding in one language and decoding in another.

- [PHP Version](https://github.com/devknown/alpha-id)
- [JavaScript Version](https://github.com/devknown/alpha-id-js)
- [Python Version](https://github.com/devknown/alpha-id-py)

Requirements
------------

[](#requirements)

PHP 7.3 and later.

Installation (Composer)
-----------------------

[](#installation-composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require devknown/alpha-id
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
// convert number to a short string
echo \Devknown\AlphaID::convert(258456357951); // Output: '4y7exoH'

// recover the original number from the short string
echo \Devknown\AlphaID::recover('4y7exoH'); // Output: 258456357951
```

Convert with key:

```
use Devknown\AlphaID;

AlphaID::config('my_key');

echo AlphaID::convert(258456357951);
// the output this time will be '4ymMZq9'

echo AlphaID::recover('4ymMZq9');
// the recover output this time will be 258456357951
```

License
-------

[](#license)

AlphaID is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

1066d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/718463eca5874773096a369e825077b35abd7af879c183b264bc38bb6a195a82?d=identicon)[devknown](/maintainers/devknown)

---

Top Contributors

[![devknown](https://avatars.githubusercontent.com/u/8023127?v=4)](https://github.com/devknown "devknown (27 commits)")

---

Tags

alphanumeric-stringsencoding-decodingjavascriptnumber-to-alphanumericobfuscationphp7php8pythonrandom-idshort-string

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devknown-alpha-id/health.svg)

```
[![Health](https://phpackages.com/badges/devknown-alpha-id/health.svg)](https://phpackages.com/packages/devknown-alpha-id)
```

PHPackages © 2026

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