midnite81 / alphacon

A PHP package which converts strings into the Nato Alphabet, Morse Code and anything else you define

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alphacon Latest Stable Version Total Downloads Latest Unstable Version License Build Coverage Status

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.

About

A PHP package which converts strings into the Nato Alphabet, Morse Code and anything else you define


Languages

Language:PHP 100.0%