{"id":16060895,"url":"https://github.com/geerlingguy/celltrust-php","last_synced_at":"2025-04-05T09:12:13.455Z","repository":{"id":6785909,"uuid":"8033145","full_name":"geerlingguy/CellTrust-PHP","owner":"geerlingguy","description":"CellTrust PHP","archived":false,"fork":false,"pushed_at":"2013-04-04T17:31:15.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T18:11:18.402Z","etag":null,"topics":["api","celltrust","flocknote","library","php","sms"],"latest_commit_sha":null,"homepage":null,"language":null,"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/geerlingguy.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":"2013-02-05T16:38:13.000Z","updated_at":"2023-07-12T01:24:50.000Z","dependencies_parsed_at":"2022-08-28T20:52:13.199Z","dependency_job_id":null,"html_url":"https://github.com/geerlingguy/CellTrust-PHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FCellTrust-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FCellTrust-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FCellTrust-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2FCellTrust-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/CellTrust-PHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312086,"owners_count":20918344,"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":["api","celltrust","flocknote","library","php","sms"],"created_at":"2024-10-09T04:07:07.750Z","updated_at":"2025-04-05T09:12:13.411Z","avatar_url":"https://github.com/geerlingguy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CellTrust-PHP\n\nCellTrust PHP was originally written to integrate CellTrust's SMS messaging API\nfor [Flocknote](http://www.flocknote.com) by Jeff Geerling.\n\nCellTrust has a REST API that is used for sending and receiving messages, but I\ncouldn't find any helpful PHP documentation or pre-existing libraries, so I\nwrote this class.\n\n## Usage\n\nThis code only implements bits of the CellTrust public messaging API (and not\nthe private messaging API, since I don't need to use it). Sending and receiving\nmessages is a simple affair:\n\n### Sending a message\n\n```php\n// To send a message, create an instance of the class with your username and\n// password, then set your message/keyword parameters, and send the message.\n$sms = new CellTrust('myusername', 'mypassword');\n$sms-\u003esetKeyword(\"mykeyword\");\n$sms-\u003esetShortcode(00000);\n$sms-\u003esetMessage(\"My message here.\");\n$sms-\u003esetPhoneNumber(\"13145556666\");\n$sms-\u003esetPhoneCarrier(2);\n$sms-\u003esendSMS();\n```\n\n### Receiving a message\n\n```php\n// To receive a message, get the data delivered to your server, create an\n// instance of the class with your username and password, then parse the\n// data from CellTrust.\n$input = file_get_contents('php://input'); // Get CellTrust request.\n$sms = new CellTrust('myusername', 'mypassword');\n$sms-\u003eparseIncomingSMS($input);\n// Use getReceivedData() to return entire array of parameters received from\n// CellTrust.\n$received_data = $sms-\u003egetReceivedData();\n// You can also retrieve received data granularly.\n$message = $sms-\u003egetData(); // getMessage() and getData() may be different.\n```\n\n## License\n\nCellTrust-PHP is licensed under the MIT (Expat) license. See included LICENSE.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fcelltrust-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fcelltrust-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fcelltrust-php/lists"}