Skip to content

rexxars/morse-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

morse-php

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.

About

Morse code utilities, in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages