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

ActiveLibrary

fatkulnurk/radix-converter
==========================

Modern &amp; Type-safe Radix (Base-N) Converter for PHP

00PHPCI passing

Since Mar 28Pushed 1mo agoCompare

[ Source](https://github.com/fatkulnurk/radix-converter-php)[ Packagist](https://packagist.org/packages/fatkulnurk/radix-converter)[ RSS](/packages/fatkulnurk-radix-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Radix Converter PHP
===================

[](#radix-converter-php)

A type-safe library to convert numbers into short strings and back. Perfect for URL shorteners, unique IDs, and compact representations.

[Packagist](https://packagist.org/packages/fatkulnurk/radix-converter)

---

What Does This Do?
------------------

[](#what-does-this-do)

This library converts numbers like `12345` into short strings like `"3d7"` and back. This is useful for:

- Creating short URLs (like `bit.ly/3d7`)
- Generating compact unique IDs
- Making numbers easier to read and share

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

[](#installation)

Run this command in your terminal:

```
composer require fatkulnurk/radix-converter
```

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

[](#requirements)

- PHP 8.5 or higher

Quick Start
-----------

[](#quick-start)

Here's the simplest way to use it:

```
