{"id":22144030,"url":"https://github.com/abandroid/cm-sms","last_synced_at":"2025-07-26T01:31:02.973Z","repository":{"id":56977735,"uuid":"76946244","full_name":"abandroid/cm-sms","owner":"abandroid","description":"Library for sending SMS messages via CM","archived":false,"fork":false,"pushed_at":"2023-01-31T11:55:53.000Z","size":908,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T20:06:17.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://endroid.nl","language":"PHP","has_issues":false,"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/abandroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"endroid"}},"created_at":"2016-12-20T10:16:31.000Z","updated_at":"2023-06-13T15:59:37.000Z","dependencies_parsed_at":"2023-02-16T18:45:40.098Z","dependency_job_id":null,"html_url":"https://github.com/abandroid/cm-sms","commit_stats":null,"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abandroid%2Fcm-sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abandroid%2Fcm-sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abandroid%2Fcm-sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abandroid%2Fcm-sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abandroid","download_url":"https://codeload.github.com/abandroid/cm-sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227635409,"owners_count":17796972,"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":[],"created_at":"2024-12-01T22:18:09.130Z","updated_at":"2024-12-01T22:18:09.769Z","avatar_url":"https://github.com/abandroid.png","language":"PHP","funding_links":["https://github.com/sponsors/endroid"],"categories":[],"sub_categories":[],"readme":"# CM SMS\r\n\r\n*By [endroid](https://endroid.nl/)*\r\n\r\n[![Latest Stable Version](http://img.shields.io/packagist/v/endroid/cm-sms.svg)](https://packagist.org/packages/endroid/cm-sms)\r\n[![Build Status](https://github.com/endroid/cm-sms/workflows/CI/badge.svg)](https://github.com/endroid/cm-sms/actions)\r\n[![Total Downloads](http://img.shields.io/packagist/dt/endroid/cm-sms.svg)](https://packagist.org/packages/endroid/cm-sms)\r\n[![Monthly Downloads](http://img.shields.io/packagist/dm/endroid/cm-sms.svg)](https://packagist.org/packages/endroid/cm-sms)\r\n[![License](http://img.shields.io/packagist/l/endroid/cm-sms.svg)](https://packagist.org/packages/endroid/cm-sms)\r\n\r\nThis library enables sending SMS messages using the [CM Telecom SMS service](https://docs.cmtelecom.com/).\r\n\r\n## Installation\r\n\r\nUse [Composer](https://getcomposer.org/) to install the library.\r\n\r\n``` bash\r\n$ composer require endroid/cm-sms\r\n```\r\n\r\n### Symfony integration\r\n\r\nYou can easily integrate the library in Symfony with the [endroid/cm-sms-bundle](https://github.com/endroid/cm-sms-bundle).\r\n\r\n## Usage\r\n\r\n```php\r\nuse Endroid\\CmSms\\Client;\r\nuse Endroid\\CmSms\\Exception\\RequestException;\r\n\r\n$client = new Client();\r\n\r\n$options = [\r\n    'sender' =\u003e 'Endroid',\r\n    'unicode' =\u003e 'auto',\r\n    'minimum_number_of_message_parts' =\u003e 1,\r\n    'maximum_number_of_message_parts' =\u003e 3,\r\n];\r\n\r\n$message = new Message();\r\n$message-\u003eaddTo('0600000000');\r\n$message-\u003esetBody('SMS Messaging is the future!');\r\n\r\n// Send single message (to one or more recipients)\r\ntry {\r\n    $client-\u003esendMessage($message, $options);\r\n} catch (RequestException $exception) {\r\n    // handle exception\r\n}\r\n\r\n// Or bulk send multiple messages (to one or more recipients)\r\ntry {\r\n    $client-\u003esendMessages([$message, ...], $options);\r\n} catch (RequestException $exception) {\r\n    // handle exception\r\n}\r\n```\r\n\r\n## Options\r\n\r\nThe following sending options are available.\r\n\r\n* sender: default sender\r\n* unicode: unicode handling (auto, force or never)\r\n* minimum_number_of_message_parts: min when splitting up long messages\r\n* maximum_number_of_message_parts: max when splitting up long messages\r\n\r\n## Versioning\r\n\r\nVersion numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility\r\nbreaking changes will be kept to a minimum but be aware that these can occur.\r\nLock your dependencies for production and test your code when upgrading.\r\n\r\n## License\r\n\r\nThis source code is subject to the MIT license bundled in the file LICENSE.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabandroid%2Fcm-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabandroid%2Fcm-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabandroid%2Fcm-sms/lists"}