Download the PHP package worthwelle/alphonic without Composer
On this page you can find all versions of the php package worthwelle/alphonic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download worthwelle/alphonic
More information about worthwelle/alphonic
Files in worthwelle/alphonic
Package alphonic
Short Description 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.
License GPL-3.0-or-later
Homepage https://worthwelle.com
Informations about the package alphonic
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, some include numbers, some include language-specific Latin characters (such as the various letters with diacritical 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
Library
Composer
Usage
Load pre-configured alphabets
Load a custom alphabet
Configuration Options
Known Issues
- Localizations are currently not supported and alphabets require titles and symbols utilizing the "en" localization.
- During early development the JSON schema is likely to change without notice. Once v1.0 is formalized, this will become the standard going forward.
Running the tests
Contributing
Alphabets
Currently supported alphabets:
Code | Alphabet Title |
---|---|
APCO1941 |
Association of Public-Safety Communications Officials-International (1941) |
APCO1967 |
Association of Public-Safety Communications Officials-International Project 2 (1967) |
APCO1974 |
Association of Public-Safety Communications Officials-International Project 14 (1974) |
ARRL1936 |
American Radio Relay League (1936) |
CCBUSUK1943 |
Combined Communications Board (1943) |
CCIR-ICAN1932 |
General Radiocommunication and Additional Regulations (CCIR/ICAN, 1932) |
CCIR1927 |
General Radiotelegraph Regulations (1927) |
ICAO1946 |
ICAO Second Session of the Communications Division (1946) |
IRC1947 |
Radio Regulations and Additional Radio Regulations (Atlantic City, 1947) |
IRCC1938 |
International Radiocommunication Conference (Cairo, 1938) |
LVMPD |
Las Vegas Metropolitan Police Department |
NATO |
NATO Phonetic Alphabet |
NATO1956 |
NATO Phonetic Alphabet (Jan 1 - Feb 29, 1956) |
UECU1920 |
Universal Electrical Communications Union (1920) |
USAFM2412-1943 |
U.S. Army Field Manual 24-12 (1943-1955) |
USAFM245-1939 |
U.S. Army Field Manual 24-5 (1939-1943) |
USAFM245-1941 |
U.S. Army Field Manual 24-5 (1941-1943) |
USAS1919 |
U.S. Air Service (1919) |
USASB1916 |
U.S. Army Signal Book (1916-1939) |
USJAN1941 |
U.S. Joint Army/Navy (1941-1943) |
USJAN1941A |
U.S. Joint Army/Navy variant (1941-1943) |
USN1908-1 |
U.S. Navy (1908; Version 1) |
USN1908-2 |
U.S. Navy (1908; Version 2) |
USN1913 |
U.S. Navy (1913-1926) |
USN1927 |
U.S. Navy (1927-1937) |
USN1938 |
U.S. Navy (1938) |
USNWW2 |
U.S. Navy World War II |
WU1918 |
Western Union (1918) |