PHP morse code utilities.
<?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'));
To include morse-php
in your project, add it to your composer.json
file:
{
"require": {
"rexxars/morse": "^1.0.0"
}
}
MIT licensed. See LICENSE for full terms.