rexxars/morse

Generate morse code (text and/or wav-audio)

1.0.0 2015-11-04 22:20 UTC

This package is auto-updated.

Last update: 2024-03-29 03:15:01 UTC


README

PHP morse code utilities.

Build Status

Usage

<?php
// Translate from/to morse:
$text = new Morse\Text();
$morse = $text->toMorse('SOS');

echo $morse; // ... --- ...
echo $text->fromMorse($morse); // SOS

// Generate a WAV-file:
$wav = new Morse\Wav();
file_put_contents('sos.wav', $wav->generate('SOS'));

Installing

To include morse-php in your project, add it to your composer.json file:

{
    "require": {
        "rexxars/morse": "^1.0.0"
    }
}

License

MIT licensed. See LICENSE for full terms.