2017 © Pedro Peláez
 

library morsecode

Encode or decode your morsecode messages with this package

image

johnnymast/morsecode

Encode or decode your morsecode messages with this package

  • Sunday, April 9, 2017
  • by johnnymast
  • Repository
  • 2 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality, (*1)

Morsecode

This package allows you to encode or decode morsecode messages., (*2)

Encoding

If you wish to encode your message you can use the encode method., (*3)

use johnnymast\Morsecode\Morsecode;

$morse = new Morsecode();
echo $morse->encode('This is a test');

Decoding

If you wish to decode your message you can use the decode method., (*4)

use johnnymast\Morsecode\Morsecode;

$morse = new Morsecode();
echo $morse->decode('- .... .. ... / .. ... / .- / - . ... -');

Alternative methods

You can also pass the message you wish you encode or decode via the constructor of the class like so., (*5)

use johnnymast\Morsecode\Morsecode;

$morse = new Morsecode('This is a test');
echo $morse->encode();

Return values

The encode and decode methods could return en empty string if no translation could be made. So please take note of this., (*6)

Installation

Using composer:, (*7)

$ composer require johnnymast/morsecode

Requirements

The following versions of PHP are supported by this version., (*8)

  • PHP >= 7.0
  • HHVM

Development Requirements

  • PHPUnit 5.7

Author

This package is created and maintained by Johnny Mast. If you have any questions feel free to contact me on twitter by using @mastjohnny in your tweet., (*9)

License

MIT License, (*10)

Copyright (c) 2019 Johnny Mast, (*11)

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:, (*12)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*13)

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., (*14)

The Versions

09/04 2017

dev-master

9999999-dev

Encode or decode your morsecode messages with this package

  Sources   Download

proprietary

The Development Requires

09/04 2017

v1.2

1.2.0.0

Encode or decode your morsecode messages with this package

  Sources   Download

proprietary

The Development Requires

09/04 2017

v1.1

1.1.0.0

Encode or decode your morsecode messages with this package

  Sources   Download

proprietary

The Development Requires

09/04 2017

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Encode or decode your morsecode messages with this package

  Sources   Download

proprietary

The Development Requires

09/04 2017

v1.0

1.0.0.0

Morsecode kata

  Sources   Download

proprietary

The Development Requires