PHPackages                             worthwelle/alphonic - 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. worthwelle/alphonic

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

worthwelle/alphonic
===================

A library for converting strings into and from phonetic spellings for use over the phone, a radio or other unclear communications channels. Alphonic provides these conversions not only using the standard NATO alphabet, but also various other phonetic alphabets, making it perfect for easily converting strings with historical accuracy.

v0.1.0(6y ago)03GPL-3.0-or-laterPHPPHP &gt;=5.3.0CI failing

Since Jan 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Worthwelle/Alphonic)[ Packagist](https://packagist.org/packages/worthwelle/alphonic)[ Docs](https://worthwelle.com)[ RSS](/packages/worthwelle-alphonic/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Alphonic
========

[](#alphonic)

[![Build Status](https://camo.githubusercontent.com/bf80b719c5195c2d15fd35b207ce2f18b72c9ecdb52682f155fbee03d7706ed1/68747470733a2f2f7472617669732d63692e6f72672f776f72746877656c6c652f616c70686f6e69632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/worthwelle/alphonic)[![Latest Stable Version](https://camo.githubusercontent.com/1a30f1eabc688b3b8855beb2e0a8a4288c35987dd70b4f04a2370acf58e73b40/68747470733a2f2f706f7365722e707567782e6f72672f776f72746877656c6c652f616c70686f6e69632f762f737461626c652e706e67)](https://packagist.org/packages/worthwelle/alphonic)[![Total Downloads](https://camo.githubusercontent.com/95b1eae5f9532df471caecdc0f04689091b9f906eb5a86700b69bfe437fc4695/68747470733a2f2f706f7365722e707567782e6f72672f776f72746877656c6c652f616c70686f6e69632f646f776e6c6f6164732e706e67)](https://packagist.org/packages/worthwelle/alphonic)

A library for converting strings into and from phonetic spellings for use over the phone, a radio or other unclear communications channels. Alphonic provides these conversions not only using the standard NATO alphabet, but also various other phonetic alphabets, making it perfect for easily converting strings with historical accuracy.

**Important note**

The alphabets in this library are provided not only as-is, but also as-were. That is, these alphabets are provided as they were originally defined. This means that the characters supported by each alphabet differ. Some alphabets cover only the [classical Latin alphabet](https://en.wikipedia.org/wiki/Latin_alphabet#Classical_Latin_alphabet), some include numbers, some include language-specific Latin characters (such as the various letters with [diacritical](https://en.wikipedia.org/wiki/Diacritic) marks), and some include punctuation and figure-specific characters.

These limitations can be overcome using the `add_symbol` function, which allows adding characters to a particular alphabet on a one-time-only basis. To fill in only missing symbols in multiple alphabets, the `add_symbol` or `add_symbols` functions can be used with `$overwrite` set to false. This will, naturally, be a non-standard use of the alphabet.

More information on creating custom alphabets will be available in the near future.

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

[](#installation)

### Library

[](#library)

```
git clone https://github.com/worthwelle/alphonic.git
```

### Composer

[](#composer)

[Install PHP Composer](https://getcomposer.org/doc/00-intro.md)

```
composer require worthwelle/alphonic
```

Usage
-----

[](#usage)

### Load pre-configured alphabets

[](#load-pre-configured-alphabets)

```
