PHPackages                             qiuqiux/base-convert - 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. qiuqiux/base-convert

ActiveLibrary

qiuqiux/base-convert
====================

Converted from Binary,Octal,Decimal,Hexadecimal,Base62 and etc

v1.0.1(8y ago)02491MITPHP

Since Jun 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/qiuqiuX/BaseConvert)[ Packagist](https://packagist.org/packages/qiuqiux/base-convert)[ RSS](/packages/qiuqiux-base-convert/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

BaseConvert
===========

[](#baseconvert)

#### Examples:

[](#examples)

```
$cv = new \QiuQiuX\BaseConvert\BaseConvert(255, 10);
// base 62 chars by default.(0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)
echo $cv->convertTo(8) , '';   // 377
echo $cv->convertTo(9) , '';   // 313
echo $cv->convertTo(10) , '';  // 255
echo $cv->convertTo(11) , '';  // 212
echo $cv->convertTo(16) , '';  // FF
echo $cv->convertTo(26) , '';  // 9L

```

---

```
$cv = new \QiuQiuX\BaseConvert\BaseConvert(255, 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', false);

echo $cv->convertTo(8) , '';   // DHH
echo $cv->convertTo(9) , '';   // DBD
echo $cv->convertTo(10) , '';  // CFF
echo $cv->convertTo(11) , '';  // CBC
echo $cv->convertTo(16) , '';  // PP
echo $cv->convertTo(26) , '';  // JV

```

---

```
echo \QiuQiuX\BaseConvert\BaseConvert::format2Decimal('CFF', 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', true), '';   // 255

```

---

```
$cv = new \QiuQiuX\BaseConvert\BaseConvert('CFF', 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', true);

echo $cv->convertTo(8) , '';   // DHH
echo $cv->convertTo(9) , '';   // DBD
echo $cv->convertTo(10) , '';  // CFF
echo $cv->convertTo(11) , '';  // CBC
echo $cv->convertTo(16) , '';  // PP
echo $cv->convertTo(26) , '';  // JV

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

Every ~458 days

Total

2

Last Release

3160d ago

### Community

Maintainers

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

---

Top Contributors

[![qiuqiuX](https://avatars.githubusercontent.com/u/6559734?v=4)](https://github.com/qiuqiuX "qiuqiuX (3 commits)")

---

Tags

base62baseConvert

### Embed Badge

![Health badge](/badges/qiuqiux-base-convert/health.svg)

```
[![Health](https://phpackages.com/badges/qiuqiux-base-convert/health.svg)](https://phpackages.com/packages/qiuqiux-base-convert)
```

###  Alternatives

[tuupola/base62

Base62 encoder and decoder for arbitrary data

1994.3M35](/packages/tuupola-base62)[elfsundae/laravel-hashid

A simple, elegant way to obfuscate your data by generating reversible, non-sequential, URL-safe identifiers.

415246.3k2](/packages/elfsundae-laravel-hashid)[tuupola/ksuid

K-Sortable Globally Unique IDs

1081.2M4](/packages/tuupola-ksuid)[xobotyi/basen

Text and integers encoding utilities for PHP with no extensions dependencies. Base32, Base58, Base64 and much more!

1219.6k](/packages/xobotyi-basen)[base62/base62

base62 encoder and decoder also for big numbers with Laravel integration

169.5k](/packages/base62-base62)

PHPackages © 2026

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