PHPackages                             delight-im/alphabets - 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. delight-im/alphabets

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

delight-im/alphabets
====================

Sets of digits or characters that may be used for base conversions, encoding and decoding tasks, and input validation

v1.0.0(6y ago)547.9k↑35.3%12MITPHPPHP &gt;=5.6.0

Since Nov 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/delight-im/PHP-Alphabets)[ Packagist](https://packagist.org/packages/delight-im/alphabets)[ Docs](https://github.com/delight-im/PHP-Alphabets)[ RSS](/packages/delight-im-alphabets/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (2)

PHP-Alphabets
=============

[](#php-alphabets)

Sets of digits or characters that may be used for base conversions, encoding and decoding tasks, and input validation

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

[](#requirements)

- PHP 5.6.0+

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

[](#installation)

1. Include the library via Composer [\[?\]](https://github.com/delight-im/Knowledge/blob/master/Composer%20(PHP).md):

    ```
    $ composer require delight-im/alphabets

    ```
2. Include the Composer autoloader:

    ```
    require __DIR__ . '/vendor/autoload.php';
    ```

Usage
-----

[](#usage)

### Available alphabets

[](#available-alphabets)

```
\Delight\Alphabets\Alphabet::ALPHA;
\Delight\Alphabets\Alphabet::ALPHA_HUMAN;
\Delight\Alphabets\Alphabet::ALPHA_LOWERCASE;
\Delight\Alphabets\Alphabet::ALPHA_LOWERCASE_HUMAN;
\Delight\Alphabets\Alphabet::ALPHA_UPPERCASE;
\Delight\Alphabets\Alphabet::ALPHA_UPPERCASE_HUMAN;
\Delight\Alphabets\Alphabet::ALPHANUMERIC;
\Delight\Alphabets\Alphabet::ALPHANUMERIC_AND_PUNCTUATION_HUMAN;
\Delight\Alphabets\Alphabet::ALPHANUMERIC_HUMAN;
\Delight\Alphabets\Alphabet::ALPHANUMERIC_LOWERCASE;
\Delight\Alphabets\Alphabet::ALPHANUMERIC_LOWERCASE_HUMAN;
\Delight\Alphabets\Alphabet::ALPHANUMERIC_UPPERCASE;
\Delight\Alphabets\Alphabet::ALPHANUMERIC_UPPERCASE_HUMAN;
\Delight\Alphabets\Alphabet::ASCII_PRINTABLE;
\Delight\Alphabets\Alphabet::ASCII_PRINTABLE_HUMAN;
\Delight\Alphabets\Alphabet::BASE_32;
\Delight\Alphabets\Alphabet::BASE_58;
\Delight\Alphabets\Alphabet::BASE_64;
\Delight\Alphabets\Alphabet::BASE_64_URL;
\Delight\Alphabets\Alphabet::BASE_85;
\Delight\Alphabets\Alphabet::BINARY;
\Delight\Alphabets\Alphabet::DECIMAL;
\Delight\Alphabets\Alphabet::DUODECIMAL;
\Delight\Alphabets\Alphabet::DUODECIMAL_LOWERCASE;
\Delight\Alphabets\Alphabet::DUODECIMAL_UPPERCASE;
\Delight\Alphabets\Alphabet::HEX;
\Delight\Alphabets\Alphabet::HEX_LOWERCASE;
\Delight\Alphabets\Alphabet::HEX_UPPERCASE;
\Delight\Alphabets\Alphabet::OCTAL;
\Delight\Alphabets\Alphabet::QUATERNARY;
\Delight\Alphabets\Alphabet::QUINARY;
\Delight\Alphabets\Alphabet::SENARY;
\Delight\Alphabets\Alphabet::TERNARY;
\Delight\Alphabets\Alphabet::VIGESIMAL;
\Delight\Alphabets\Alphabet::VIGESIMAL_LOWERCASE;
\Delight\Alphabets\Alphabet::VIGESIMAL_UPPERCASE;
```

### Checking for standard base-n alphabets

[](#checking-for-standard-base-n-alphabets)

```
\Delight\Alphabets\Alphabet::isStandardAlphabet('01234567');
// => bool(true)
```

Contributing
------------

[](#contributing)

All contributions are welcome! If you wish to contribute, please create an issue first so that your feature, problem or question can be discussed.

License
-------

[](#license)

This project is licensed under the terms of the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2420d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6597567?v=4)[delight.im](/maintainers/delight-im)[@delight-im](https://github.com/delight-im)

---

Top Contributors

[![ocram](https://avatars.githubusercontent.com/u/1681478?v=4)](https://github.com/ocram "ocram (1 commits)")

---

Tags

encodingbase64encodedecodedecimalbase32asciihexbinarydecodingbase58alphahexadecimalbase85alphanumericoctalbase64urlalphabetalphabets

### Embed Badge

![Health badge](/badges/delight-im-alphabets/health.svg)

```
[![Health](https://phpackages.com/badges/delight-im-alphabets/health.svg)](https://phpackages.com/packages/delight-im-alphabets)
```

###  Alternatives

[paragonie/constant_time_encoding

Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)

908363.2M191](/packages/paragonie-constant-time-encoding)[delight-im/base-convert

Conversion of arbitrarily large numbers between any two bases or alphabets

161.5k](/packages/delight-im-base-convert)[christian-riesen/base32

Base32 encoder/decoder according to RFC 4648

13333.9M74](/packages/christian-riesen-base32)[delight-im/base64

Simple and convenient Base64 encoding and decoding for PHP

16175.4k6](/packages/delight-im-base64)[xobotyi/basen

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

1220.4k](/packages/xobotyi-basen)[ssnepenthe/color-utils

A PHP library for performing SASS-like color manipulations.

631.2M16](/packages/ssnepenthe-color-utils)

PHPackages © 2026

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