|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2019-02-20 (1 month ago)||Not yet rated by the users||Total: 73 This week: 2||All time: 9,330 This week: 242|
|morsecode 1.0.0||MIT/X Consortium ...||5||PHP 5, Text processing, Audio|
This class can encode or decode your Morse code messages.
This package allows you to encode or decode morsecode messages.
If you wish to encode your message you can use the encode method.
use johnnymast\Morsecode\Morsecode; $morse = new Morsecode(); echo $morse->encode('This is a test');
If you wish to decode your message you can use the decode method.
use johnnymast\Morsecode\Morsecode; $morse = new Morsecode(); echo $morse->decode('.... .. ... / .. ... / .- / - . ... -');
You can also pass the message you wish you encode or decode via the constructor of the class like so.
use johnnymast\Morsecode\Morsecode; $morse = new Morsecode('This is a test'); echo $morse->encode();
The encode and decode methods could return en empty string if no translation could beforce. So please take note of this.
$ composer require johnnymast/morsecode
The following versions of PHP are supported by this version.
Copyright (c) 2017 Johnny Mast
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|Version Control||Unique User Downloads||Download Rankings|