{"id":29703388,"url":"https://github.com/thedumbtechguy/ussd-pdu-converters","last_synced_at":"2025-07-23T13:39:47.075Z","repository":{"id":149738452,"uuid":"43362333","full_name":"thedumbtechguy/USSD-PDU-Converters","owner":"thedumbtechguy","description":"PDU (Portable Data Unit) Converters implemented currently in Java  and PHP.","archived":false,"fork":false,"pushed_at":"2015-09-29T11:54:50.000Z","size":252,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-01T09:57:23.683Z","etag":null,"topics":["converters-implemented","java","pdu","php","ussd"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedumbtechguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-29T11:01:03.000Z","updated_at":"2023-04-08T19:17:11.194Z","dependencies_parsed_at":"2023-04-08T19:32:23.791Z","dependency_job_id":null,"html_url":"https://github.com/thedumbtechguy/USSD-PDU-Converters","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/thedumbtechguy/USSD-PDU-Converters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2FUSSD-PDU-Converters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2FUSSD-PDU-Converters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2FUSSD-PDU-Converters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2FUSSD-PDU-Converters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedumbtechguy","download_url":"https://codeload.github.com/thedumbtechguy/USSD-PDU-Converters/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2FUSSD-PDU-Converters/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266689836,"owners_count":23969146,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["converters-implemented","java","pdu","php","ussd"],"created_at":"2025-07-23T13:39:46.287Z","updated_at":"2025-07-23T13:39:47.063Z","avatar_url":"https://github.com/thedumbtechguy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PduConverters\nPDU (Portable Data Unit) Converters implemented currently in Java and PHP.\n\nI needed to convert between PDU and simple text for a USSD project. All I could find online were SMS PDU converters and they didn't work for me.\nI found https://github.com/gnomeby/ussd and extracted the conversion code. The PHP version is a exactly what I took from the code.\nThe Java version is a direct port.\n\n## Usage\n\nFor PHP\n```php\nrequire 'Converter.php';\n\nuse Pdu\\Converter;\n\nvar_dump(Converter::toPDU('*124#')); //-\u003e string 'AA988C3602' (length=10)\nvar_dump(Converter::toText('54747A0E6A97E7F3F0B90CBA87E7A0F1DB6D2FCBE9657208')); //-\u003e string 'This message was converted!' (length=27)\n\n```\n\n\nFor Java\n```java\n//copy the code into your project or however you do these things\n\nConverter.toPDU(\"*124#\");\nConverter.toText(\"54747A0E6A97E7F3F0B90CBA87E7A0F1DB6D2FCBE9657208\");\n\n```\n\n## Copyright\nPlease use as you please. \nIf you can, contribute improvements you make to the code. \nIf you port it into another language, it would be great if you contributed that back as well. \nWe have a suprising vacuum in this area online.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedumbtechguy%2Fussd-pdu-converters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedumbtechguy%2Fussd-pdu-converters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedumbtechguy%2Fussd-pdu-converters/lists"}