{"id":43817112,"url":"https://github.com/ismaeltoe/osms-php","last_synced_at":"2026-02-06T00:35:58.118Z","repository":{"id":30173673,"uuid":"33724057","full_name":"ismaeltoe/osms-php","owner":"ismaeltoe","description":"A PHP library to access Orange SMS API.","archived":false,"fork":false,"pushed_at":"2025-12-25T12:55:14.000Z","size":23,"stargazers_count":45,"open_issues_count":2,"forks_count":43,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-12-27T00:34:31.535Z","etag":null,"topics":["composer","orange-api","orange-smsapi","php","php-library"],"latest_commit_sha":null,"homepage":null,"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/ismaeltoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-10T10:59:18.000Z","updated_at":"2025-12-25T12:55:18.000Z","dependencies_parsed_at":"2022-08-28T06:51:05.357Z","dependency_job_id":null,"html_url":"https://github.com/ismaeltoe/osms-php","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ismaeltoe/osms-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismaeltoe%2Fosms-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismaeltoe%2Fosms-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismaeltoe%2Fosms-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismaeltoe%2Fosms-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ismaeltoe","download_url":"https://codeload.github.com/ismaeltoe/osms-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismaeltoe%2Fosms-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29140371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["composer","orange-api","orange-smsapi","php","php-library"],"created_at":"2026-02-06T00:35:55.777Z","updated_at":"2026-02-06T00:35:58.111Z","avatar_url":"https://github.com/ismaeltoe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Osms\n\nA PHP library to access Orange SMS API.\n\nCurrent version: 2.0.2\n\n## Installation\n\n### With Composer (recommended)\n\nInstall [Composer](https://getcomposer.org/). Then, do:\n\n    $ composer require ismaeltoe/osms\n\n### Without Composer\n\nSimply [download the latest release](https://github.com/ismaeltoe/osms-php/archive/master.zip).\n\n## Loading\n\nYou can load the class using Composer's autoloading:\n\n```php\nrequire 'vendor/autoload.php';\n```\nOtherwise, you can simply require the file directly:\n\n```php\nrequire 'path/to/Osms.php';\n```\n## Quick Start\n\n**Case 1: You have no access token**\n\n```php\nrequire 'vendor/autoload.php';\n\nuse \\Osms\\Osms;\n\n$config = array(\n    'clientId' =\u003e 'your_client_id',\n    'clientSecret' =\u003e 'your_client_secret'\n);\n\n$osms = new Osms($config);\n\n// retrieve an access token\n$response = $osms-\u003egetTokenFromConsumerKey();\n\nif (!empty($response['access_token'])) {\n    $senderAddress = 'tel:+2250000';\n    $receiverAddress = 'tel:+22500000000';\n    $message = 'Hello World!';\n    $senderName = 'Optimus Prime';\n\n    $osms-\u003esendSMS($senderAddress, $receiverAddress, $message, $senderName);\n} else {\n    // error\n}\n```\n\n**Case 2: You have an access token**\n\n```php\nrequire 'vendor/autoload.php';\n\nuse \\Osms\\Osms;\n\n$config = array(\n    'token' =\u003e 'your_access_token'\n);\n\n$osms = new Osms($config);\n\n$senderAddress = 'tel:+2250000';\n$receiverAddress = 'tel:+22500000000';\n$message = 'Hello World!';\n$senderName = 'Optimus Prime';\n\n$osms-\u003esendSMS($senderAddress, $receiverAddress, $message, $senderName);\n```\nCheck out [examples](https://github.com/ismaeltoe/osms-php/tree/master/examples) for more examples.\n\nCHECK OUT also [Osms.php](https://github.com/ismaeltoe/osms-php/blob/master/src/Osms.php) to see all the methods available. But DON'T MODIFY IT. You can extend the class to add your own stuff.\n\n## Country Sender Number\n\nThe sender address is a unique country sender number per country. You can find the list of country sender numbers [here](https://developer.orange.com/apis/sms/getting-started).\n\n## SSL certificate problem\n\nIf you get an SSL error, set the peer's certificate checking option to false:\n\n```php\n$osms = new Osms();\n$osms-\u003esetVerifyPeerSSL(false);\n```\nBut it should work on your hosting server, so enable the certificate checking when you are ready to deploy your application for security reasons.\n\n## Documentation\n\n * Native API [https://developer.orange.com/apis/sms-ci/getting-started](https://developer.orange.com/apis/sms-ci/getting-started)\n\n## Other Libraries\n\n * [osms-android](https://github.com/ismaeltoe/osms-android)\n\n## License\n\nReleased under the MIT License - see `LICENSE.txt` for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismaeltoe%2Fosms-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fismaeltoe%2Fosms-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismaeltoe%2Fosms-php/lists"}