{"id":19031940,"url":"https://github.com/johnnymast/morsecode","last_synced_at":"2025-04-23T16:40:41.837Z","repository":{"id":57001015,"uuid":"87694364","full_name":"johnnymast/morsecode","owner":"johnnymast","description":"Encode or decode your morsecode messages with this package","archived":false,"fork":false,"pushed_at":"2019-04-01T18:03:14.000Z","size":32,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T01:48:05.578Z","etag":null,"topics":["army","communication","decoder","encoder","morse","morse-code"],"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/johnnymast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-09T08:37:10.000Z","updated_at":"2024-12-13T20:19:47.000Z","dependencies_parsed_at":"2022-08-21T14:10:21.313Z","dependency_job_id":null,"html_url":"https://github.com/johnnymast/morsecode","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fmorsecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fmorsecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fmorsecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fmorsecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnymast","download_url":"https://codeload.github.com/johnnymast/morsecode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250471915,"owners_count":21436044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["army","communication","decoder","encoder","morse","morse-code"],"created_at":"2024-11-08T21:25:49.293Z","updated_at":"2025-04-23T16:40:41.815Z","avatar_url":"https://github.com/johnnymast.png","language":"PHP","readme":"[![Build Status](https://travis-ci.org/johnnymast/morsecode.svg?branch=master)](https://travis-ci.org/johnnymast/morsecode)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/johnnymast/morsecode/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/johnnymast/morsecode/?branch=master)\n\n\n# Morsecode\n\nThis package allows you to encode or decode morsecode messages.\n\n\n## Encoding\n\nIf you wish to encode your message you can use the encode method.\n\n```php\nuse johnnymast\\Morsecode\\Morsecode;\n\n$morse = new Morsecode();\necho $morse-\u003eencode('This is a test');\n```\n\n## Decoding\n\nIf you wish to decode your message you can use the decode method.\n\n```php\nuse johnnymast\\Morsecode\\Morsecode;\n\n$morse = new Morsecode();\necho $morse-\u003edecode('- .... .. ... / .. ... / .- / - . ... -');\n```\n\n## Alternative methods\n\nYou can also pass the message you wish you encode or decode via the constructor of the class like so.\n\n```php\nuse johnnymast\\Morsecode\\Morsecode;\n\n$morse = new Morsecode('This is a test');\necho $morse-\u003eencode();\n```\n\n## Return values\n\nThe encode and decode methods could return en empty string if no translation could be made. So please take note of this.\n\n\n## Installation\n\nUsing [composer](http://www.getcompser.com):\n\n```bash\n$ composer require johnnymast/morsecode\n```\n\n## Requirements\n\nThe following versions of PHP are supported by this version.\n\n+ PHP \u003e= 7.0\n+ HHVM\n\n## Development Requirements\n\n+ PHPUnit 5.7\n\n\n## Author\n\nThis package is created and maintained by [Johnny Mast](https://github.com/johnnymast). If you have any questions feel free to contact me on twitter by using [@mastjohnny](https://twitter.com/intent/tweet?text=@mastjohnny) in your tweet.\n\n \n## License\n\nMIT License\n\nCopyright (c) 2019 Johnny Mast\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymast%2Fmorsecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnymast%2Fmorsecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymast%2Fmorsecode/lists"}