PHPackages                             volcanus/radix-converter - 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. volcanus/radix-converter

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

volcanus/radix-converter
========================

1.0.1(8y ago)01.3kMITPHPPHP ^5.6||^7.0

Since Oct 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/k-holy/volcanus-radix-converter)[ Packagist](https://packagist.org/packages/volcanus/radix-converter)[ Docs](https://github.com/k-holy/volcanus-radix-converter)[ RSS](/packages/volcanus-radix-converter/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (12)Used By (0)

Volcanus\\RadixConverter
========================

[](#volcanusradixconverter)

[![Latest Stable Version](https://camo.githubusercontent.com/a35f8022af0d9f3d99a8e713d57cd7c31a960a5017e7ec758258b315675c1fcb/68747470733a2f2f706f7365722e707567782e6f72672f766f6c63616e75732f72616469782d636f6e7665727465722f762f737461626c652e706e67)](https://packagist.org/packages/volcanus/radix-converter)[![Build Status](https://camo.githubusercontent.com/02cb5b523134dcb24e6bd4eda713a3ea750b2677ca2f408802db1bfd588a3f8f/68747470733a2f2f7472617669732d63692e6f72672f6b2d686f6c792f766f6c63616e75732d72616469782d636f6e7665727465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/k-holy/volcanus-radix-converter)[![Coverage Status](https://camo.githubusercontent.com/5215b8e3bfdb816535ff87542dcc16cdb13b7d7684385d49db97d47a4883a260/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6b2d686f6c792f766f6c63616e75732d72616469782d636f6e7665727465722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/k-holy/volcanus-radix-converter?branch=master)

\##RadixConverter

N進数への変換を行うためのクラスです。 初期設定では62進数に変換します。

```
use \Volcanus\RadixConverter\RadixConverter;

$converter = new RadixConverter();
$converter->encode(62)->value(); // '10'
$converter->decode('10')->value(); // '62'

```

お手軽に静的コールでも使えます。

```
RadixConverter::encode(62); // '10'
RadixConverter::decode('10'); // 62

```

16進数や36進数の変換にも対応しています。

```
$converter->config('map', RadixConverter::MAP_HEXADECIMAL);
$converter->encode(65535)->value(); // 'ffff'
$converter->config('map', RadixConverter::MAP_ALPHANUMERIC_36);
$converter->encode(65535)->value(); // '1ekf'

```

自分で定義することもできます。（マルチバイト未対応）

```
$converter->config('map', 'OKNU');
$converter->encode(0)->value(); // 'O'
$converter->encode(4)->value(); // 'KO'
$converter->encode(16)->value(); // 'KOO'
$converter->encode(228)->value(); // 'UNKO'

```

BC Math関数を使える環境でacceptLong設定を有効にすると、PHP\_INT\_MAX 以上の整数値を文字列として扱えます。

```
$converter->config('acceptLong', true);
$converter->encode('2147483648')->value(); // '2lkCB2'
$converter->encode('2147483648')->decode()->value(); // '2147483648'
$converter->encode('9223372036854775808')->value(); // 'aZl8N0y58M8'
$converter->encode('9223372036854775808')->decode()->value(); // '9223372036854775808'

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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 ~159 days

Recently: every ~124 days

Total

10

Last Release

3199d ago

Major Versions

0.3.0 → 1.0.02017-09-05

PHP version history (6 changes)0.1.1PHP &gt;=5.3

0.2.0PHP &gt;=5.3.3

0.3.0PHP &gt;=5.5.9

1.0.0PHP ^5.6||^7.0||^7.1

1.0.1PHP ^5.6||^7.0

0.5.0PHP &gt;=5.3.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1d2e73b7f98be76266c240a76f79b8ef1621ca8364ebd4e8b895f55672f025e?d=identicon)[k-holy](/maintainers/k-holy)

---

Top Contributors

[![k-holy](https://avatars.githubusercontent.com/u/67330?v=4)](https://github.com/k-holy "k-holy (39 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/volcanus-radix-converter/health.svg)

```
[![Health](https://phpackages.com/badges/volcanus-radix-converter/health.svg)](https://phpackages.com/packages/volcanus-radix-converter)
```

###  Alternatives

[gbrock/laravel-table

Table functionality for Laravel models

7645.2k](/packages/gbrock-laravel-table)[lndj/lcrawl

一只优雅的正方教务系统爬虫。

1182.2k](/packages/lndj-lcrawl)[tkaratug/livewire-smart-table

An advanced datatable component for Laravel Livewire

922.1k](/packages/tkaratug-livewire-smart-table)[botman/driver-hangouts

Google Hangouts driver for BotMan

104.3k2](/packages/botman-driver-hangouts)

PHPackages © 2026

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