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 Morse as a Service
Examples
Non latin example
Morse API
setLettersChange the origin character set (letters / language)- available: Arabic, Cyrillic, Greek, Hebrew, Japanese, Korean (SKATS), Latin (default), Persian, and Thai.
getLettersGet an array of the current selected character setgetCharacterConvert a single character into morse binary code. An invalid character will return a#.stringToMorseConvert a string into binary morse code.dotDashConvert 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
setCwSpeedset words per minute (cw speed). Default is 25.setSampleRatedefault is 11050. An audio CD would be 44100 aka 44.1 kHz (16 bit).setFrequencyset the tone height. Default is 700 (cw tone).generateget 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 ...