PHPackages                             carry0987/cony - 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. carry0987/cony

ActiveLibrary

carry0987/cony
==============

Cony is a PHP library for convert integer into alphabet, and reversely too

1.0.4(1y ago)078MITPHPPHP &gt;=7.2

Since Oct 11Pushed 1y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Cony
====

[](#cony)

[![Packgist](https://camo.githubusercontent.com/f55d8ac324492d5702672503a4355589a33e93a12815093249d8a26dbc78a474/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361727279303938372f636f6e792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carry0987/cony)
Cony is a PHP library for convert integer into alphabet, and reversely too

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

[](#installation)

```
composer require carry0987/cony
```

> **Note** You can install [`bcmath`](https://secure.php.net/manual/en/book.bc.php) extension in order to get better performance

Usage
-----

[](#usage)

```
require dirname(__DIR__).'/vendor/autoload.php';

use carry0987\Cony\Cony;

echo Cony::toNumeric('test'); // 4544743
echo '';
echo Cony::toAlphanumeric(4544743); // test
```

If you want the alphaID to be at least 3 letter long, use the `$padUp` argument.

> In most cases this is better than totally random ID generators because this can easily avoid duplicate ID's.
>
> For example if you correlate the alpha ID to an auto incrementing ID in your database, you're done.

```
Cony::toAlphanumeric(4540899, 3); // test
Cony::toNumeric('test', 3); // 4540899
```

Although this function's purpose is to just make the ID short - and not so much secure, with third argument `secureKey` you can optionally supply a password to make it harder to calculate the corresponding numeric ID.

```
Cony::toAlphanumeric(11282993, 3, 'heuh2ui12'); // test
Cony::toNumeric('test', 3, 'heuh2ui12'); // 11282993
```

And, for final, you can easy transform alphanumeric result:

```
Cony::toAlphanumeric(21663528, 0, null, Cony::TRANSFORM_UPPERCASE); // B2TFK
Cony::toAlphanumeric(21663528, 0, null, Cony::TRANSFORM_LOWERCASE); // b2tfk
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Every ~71 days

Total

5

Last Release

662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f43bad259478092c4ff269518aa9a0c8e91a537a67272877041b4bc1f25cfe8?d=identicon)[carry0987](/maintainers/carry0987)

---

Top Contributors

[![carry0987](https://avatars.githubusercontent.com/u/12984973?v=4)](https://github.com/carry0987 "carry0987 (9 commits)")

---

Tags

bcmathcomposerconverterhashphpconverter

### Embed Badge

![Health badge](/badges/carry0987-cony/health.svg)

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

###  Alternatives

[mark-gerarts/auto-mapper-plus

An AutoMapper for PHP

5623.2M21](/packages/mark-gerarts-auto-mapper-plus)[iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

1.3k481.1k](/packages/iamcal-php-emoji)[matthiasmullie/path-converter

Relative path converter

10229.6M7](/packages/matthiasmullie-path-converter)[goetas-webservices/xsd2php

Convert XSD (XML Schema) definitions into PHP classes and JMS metadata

2411.6M37](/packages/goetas-webservices-xsd2php)[ncjoes/office-converter

PHP Wrapper for LibreOffice

2431.2M4](/packages/ncjoes-office-converter)[pixel418/markdownify

The HTML to Markdown converter for PHP

196800.8k8](/packages/pixel418-markdownify)

PHPackages © 2026

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