rexxars / morse
Generate morse code (text and/or wav-audio)
1.0.0
2015-11-04 22:20 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ^4.8.11
This package is auto-updated.
Last update: 2026-03-01 00:21:35 UTC
README
PHP morse code utilities.
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.