PHP code example of jblond / morse
1. Go to this page and download the library: Download jblond/morse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jblond / morse example snippets
use jblond\morse\Morse;
use jblond\morse\Wave;
Morse('SOS');
$morse = $morse->dotDash($morseBinary);
echo $morse;
$wave = new Wave();
file_put_contents('sos.wav', $wave->generate('SOS'));
use jblond\morse\Morse;
setLetters('Cyrillic');
$morse->stringToMorse('Запомнить');
use jblond\morse\Morse;
use jblond\morse\CharacterSet\Greek;
oMorse((new Greek())->stringToUpper('Τέλος εκπομπής'));