midnite81 / alphacon
Alphacon (or AlphabetConversion) converts characters in strings into different formats such as Nato Strings or Morse Code.
Requires
- php: >7.4
Requires (Dev)
- orchestra/testbench: ^5.3
- php-coveralls/php-coveralls: ^2.2
- phpunit/phpunit: ^9.2
README
Alphacon
![Coverage Status](https://camo.githubusercontent.com/34c93429fc7c12749a00a065e297a4988d80c1985926fcbaddd98b5cded5e598/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d69646e69746538312f616c706861636f6e2f62616467652e7376673f6272616e63683d6d6173746572)
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.
Current Dictionaries
- Nato
- Morse Code
Installation
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.
"midnite81/alphacon": "^1.0"
then run composer install or composer update to download the dependencies, alternatively
you can run composer require midnite81/alphacon
.
Laravel Service Provider
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 config/app.php
'providers' => [ \Midnite81\Alphacon\AlphaconServiceProvider::class ];
Usage
Depending on whether you are using this with Laravel will vary this guide on usage. Please select the appropriate guide below;
Contributions
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.