rexxars / morse
Generate morse code (text and/or wav-audio)
Installs: 2 821
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 6
Open Issues: 0
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: ^4.8.11
This package is auto-updated.
Last update: 2024-10-29 04:58:47 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.