PHPackages                             alexkr/biject - 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. alexkr/biject

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

alexkr/biject
=============

Bijection class

1.0(10y ago)0143MITPHP

Since Jul 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/AlexKR/Biject)[ Packagist](https://packagist.org/packages/alexkr/biject)[ RSS](/packages/alexkr-biject/feed)WikiDiscussions master Synced 1mo ago

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

Biject
------

[](#biject)

Simple implementation one-to-one correspondence function on PHP.

Build status: [![Build Status](https://camo.githubusercontent.com/2216ab639769dce7d8f68e2e298c39f5a8f7b5cf76d88ba54651559c4e2c5ada/68747470733a2f2f7472617669732d63692e6f72672f416c65784b522f42696a6563742e7376673f6272616e63683d7472617669732d6369)](https://travis-ci.org/AlexKR/Biject)

Code Example
------------

[](#code-example)

Encoding:

```
$bijection = new AlexKR\Biject\Bijection();
$result = $bijection->encode(42); //q

```

Decoding:

```
$bijection = new AlexKR\Biject\Bijection();
$result = $bijection->decode('iq'); //512

```

Change alphabet:

```
$bijection = new AlexKR\Biject\Bijection('0123456789');
$result = $bijection->encode(17); //17

```

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

[](#installation)

Install via Composer:

```
composer require alexkr/Biject

```

License
-------

[](#license)

Biject is licensed under the MIT License

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3968d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab60434e0f3c80a2035d10a99e5771c833c2a2361b687c315c9e01270b70a9fd?d=identicon)[AlexKR](/maintainers/AlexKR)

---

Top Contributors

[![AlexKR](https://avatars.githubusercontent.com/u/328410?v=4)](https://github.com/AlexKR "AlexKR (6 commits)")

---

Tags

bijection

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexkr-biject/health.svg)

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

###  Alternatives

[dudapiotr/zftable

Flexible tool to generate table

7530.9k](/packages/dudapiotr-zftable)[mouadziani/xstate

State machine library to play with any complex behavior of your PHP objects

866.7k](/packages/mouadziani-xstate)[pugx/godfather

Strategy pattern component as library and symfony2 bundle

2538.7k1](/packages/pugx-godfather)[akhaled/livewire-sweetalert

Integration Sweetalert with Livewire

181.9k4](/packages/akhaled-livewire-sweetalert)

PHPackages © 2026

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