{"id":17369634,"url":"https://github.com/jblond/morse","last_synced_at":"2026-02-01T11:32:06.209Z","repository":{"id":186729752,"uuid":"675660558","full_name":"JBlond/morse","owner":"JBlond","description":"PHP morse code and wav(e) sound file generation","archived":false,"fork":false,"pushed_at":"2024-12-17T12:50:02.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T15:57:17.744Z","etag":null,"topics":["audio","morse","morse-code","php","skats","wav","wave"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JBlond.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-07T12:36:50.000Z","updated_at":"2024-12-17T12:50:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"37a40765-e301-4e49-9f6b-dac930584b8e","html_url":"https://github.com/JBlond/morse","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.03125,"last_synced_commit":"aa1f7c7d86f2ff9b6acd9c9362e394f28a85729d"},"previous_names":["jblond/morse"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/JBlond/morse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fmorse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fmorse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fmorse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fmorse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBlond","download_url":"https://codeload.github.com/JBlond/morse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBlond%2Fmorse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T11:31:13.034Z","status":"ssl_error","status_checked_at":"2026-02-01T11:30:25.558Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","morse","morse-code","php","skats","wav","wave"],"created_at":"2024-10-16T00:05:57.457Z","updated_at":"2026-02-01T11:32:06.178Z","avatar_url":"https://github.com/JBlond.png","language":"PHP","readme":"# PHP morse code and wav(e) sound file generation\n\nSupported character sets\n\n- Arabic, Cyrillic, Greek (needs conversion to upper case letters (function included)), Hebrew, Japanese\nKorean, Latin, Persian, and Thai.\n\n`composer require jblond/morse`\n\nExample UI: \u003chttps://github.com/JBlond/maas\u003e Morse as a Service\n\n## Examples\n\n```php\n\u003c?php\n\nuse jblond\\morse\\Morse;\nuse jblond\\morse\\Wave;\n\nrequire './vendor/autoload.php';\n\n$morse = new Morse();\n$morseBinary = $morse-\u003estringToMorse('SOS');\n$morse = $morse-\u003edotDash($morseBinary);\necho $morse;\n$wave = new Wave();\nfile_put_contents('sos.wav', $wave-\u003egenerate('SOS'));\n```\n\nNon latin example\n\n```PHP\n\u003c?php\n\nuse jblond\\morse\\Morse;\n\nrequire './vendor/autoload.php';\n\n$morse = new Morse();\n$morse-\u003esetLetters('Cyrillic');\n$morse-\u003estringToMorse('Запомнить');\n```\n\n## Morse API\n\n- `setLetters` Change the origin character set (letters / language)\n  - available:  Arabic, Cyrillic, Greek, Hebrew, Japanese, Korean ([SKATS](https://en.wikipedia.org/wiki/SKATS)), Latin (default), Persian, and Thai.\n- `getLetters` Get an array of the current selected character set\n- `getCharacter` Convert a single character into morse binary code. An invalid character will return a `#`.\n- `stringToMorse` Convert a string into binary morse code.\n- `dotDash` Convert binary morse code into dot and dash / dit and dah.\n\n### Greek characters\n\nSince the PHP `strtoupper` function fails for Greek, an extra function to do so has been added.\n\n```PHP\n\u003c?php\nuse jblond\\morse\\Morse;\nuse jblond\\morse\\CharacterSet\\Greek;\n\nrequire './vendor/autoload.php';\n\n$morse = new Morse();\n$morse-\u003esetLetters('Greek');\n$morse-\u003estringToMorse((new Greek())-\u003estringToUpper('Τέλος εκπομπής'));\n```\n\n## Wav(e) API\n\n- `setCwSpeed` set words per minute (cw speed). Default is 25.\n- `setSampleRate` default is 11050. An audio CD would be  44100 aka 44.1 kHz (16 bit).\n- `setFrequency` set the tone height. Default is 700 (cw tone).\n- `generate` get the audio as binary.\n\nLicense: MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjblond%2Fmorse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjblond%2Fmorse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjblond%2Fmorse/lists"}