Alphacon (or AlphabetConversion) converts characters in strings into different formats such as Nato Strings or Morse Code.
Alphacon (or AlphabetConversion) converts characters in strings into different formats such as Nato Strings or Morse Code. The code has been designed in a way that you can add your own dictionaries which will convert individual characters within a string.
- Morse Code
This package requires PHP 7.4+, and includes a Laravel 5+ Service Provider and Facade.
To install through composer include the package in your composer.json.
then run composer install or composer update to download the dependencies, alternatively
you can run
composer require midnite81/alphacon.
If you are installing this for use with Laravel, the package will be auto discovered if
you are using Laravel 5.5 or greater, otherwise please register
\Midnite81\Alphacon\AlphaconServiceProvider::class within your
'providers' => [ \Midnite81\Alphacon\AlphaconServiceProvider::class ];
Depending on whether you are using this with Laravel will vary this guide on usage. Please select the appropriate guide below;
I'm very open to adding in dictionaries into this package where they serve a general purpose and would be useful to other people. If you wish to contribute, please feel free to raise a Pull Request. Please allow 5 days, often sooner, to check through your PR and merge where possible.