Download the PHP package jblond/morse without Composer
On this page you can find all versions of the php package jblond/morse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor jblond
Package morse
Short Description PHP morse code and wav(e) sound file generation
License MIT
Package morse
Short Description PHP morse code and wav(e) sound file generation
License MIT
Please rate this library. Is it a good library?
Informations about the package morse
PHP morse code and wav(e) sound file generation
Supported character sets
- Arabic, Cyrillic, Greek (needs conversion to upper case letters (function included)), Hebrew, Japanese Korean, Latin, Persian, and Thai.
composer require jblond/morse
Example UI: https://github.com/JBlond/maas
Examples
Non latin example
Morse API
setLetters
Change the origin character set (letters / language)- available: Arabic, Cyrillic, Greek, Hebrew, Japanese, Korean (SKATS), Latin (default), Persian, and Thai.
getLetters
Get an array of the current selected character setgetCharacter
Convert a single character into morse binary code. An invalid character will return a#
.stringToMorse
Convert a string into binary morse code.dotDash
Convert binary morse code into dot and dash / dit and dah.
Greek characters
Since the PHP strtoupper
function fails for Greek, an extra function to do so has been added.
Wav(e) API
setCwSpeed
set words per minute (cw speed). Default is 25.setSampleRate
default is 11050. An audio CD would be 44100 aka 44.1 kHz (16 bit).setFrequency
set the tone height. Default is 700 (cw tone).generate
get the audio as binary.
License: MIT
All versions of morse with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 8.0
ext-mbstring Version *
ext-mbstring Version *
The package jblond/morse contains the following files
Loading the files please wait ....