{"id":37002075,"url":"https://github.com/khalidsheet/oursms-laravel","last_synced_at":"2026-01-14T00:27:29.419Z","repository":{"id":49873413,"uuid":"375139506","full_name":"khalidsheet/oursms-laravel","owner":"khalidsheet","description":"oursms.app client library that allows you to send SMS ","archived":true,"fork":false,"pushed_at":"2022-08-27T14:02:35.000Z","size":12,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T14:53:21.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/khalidsheet.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":"2021-06-08T20:40:07.000Z","updated_at":"2023-02-17T22:18:05.000Z","dependencies_parsed_at":"2022-09-16T11:52:08.939Z","dependency_job_id":null,"html_url":"https://github.com/khalidsheet/oursms-laravel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/khalidsheet/oursms-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Foursms-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Foursms-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Foursms-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Foursms-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalidsheet","download_url":"https://codeload.github.com/khalidsheet/oursms-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Foursms-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":[],"created_at":"2026-01-14T00:27:28.809Z","updated_at":"2026-01-14T00:27:29.401Z","avatar_url":"https://github.com/khalidsheet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oursms laravel client\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/349ec5be7a104c97bd1846a971fa92e8)](https://www.codacy.com/gh/khalidsheet/oursms-laravel/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=khalidsheet/oursms-laravel\u0026amp;utm_campaign=Badge_Grade)\n\n[https://oursms.app](https://oursms.app) client library that allows you to send SMS\n\n## Installation\n\nInstall oursms client with composer\n\n```bash \n  composer require khalidsheet/oursms\n```\n\n**Skip this if you are running laravel version 5.5 or later**\nThe package will be auto-discovered\n\nOtherwise run this command\n\n**Step 1** - Publish the package config file under `config/oursms.php`\n```bash\n  php artisan vendor:publish --provider=\"Khalidsheet\\Oursms\\OursmsServiceProvider\" --tag=\"config\"\n``` \n\n**Step 2** - Go to the application `.env` and paste these variables in the end of the file.\n```bash\nOURSMS_USER_ID=\"\"\nOURSMS_KEY=\"\"\n```\n## Usage/Examples\n\nImport the package\n```php\nuse Khalidsheet\\Oursms\\Oursms\n```\nIn your controller instantiate a new instance from ```Oursms Client```\n```php\n$oursmsClient = new Oursms();\n```\n\nIf you wish to send a single message\n```php\n$oursmsClient-\u003esendMessage(string $to, string $message);\n```\n\nIf you wish to send Otp message\n```php\n$oursmsClient-\u003esendOtp(string $to, string $otp);\n```\n\nIf you wish to check the status of your message\n```php\n$oursmsClient-\u003egetSmsStatus(string $messageId);\n```\n**Notice:** ``to`` is the phone number, ``message`` is the actuall mesasge that will be send to the user.\n\n\n## Trait Usage/Examples\nAlso, you can use trait to send SMS or OTP messages to a user\n\nAdd the **Messageable** trait to your model.\n\n```php\nuse Khalidsheet\\Oursms\\Traits\\Messageable;\n\nclass User extends Model {\n     use Messageable;\n\n     ...\n}\n```\n\nNow you can use it like this\n```php\n$user = User::find(1);\n\n// Sending OSM \n$user-\u003esendMessage(string $message);\n\n// Sending OTP\n$user-\u003esendOtp(string $otp);\n```\n\n**Notice:** Trait functionality only available from version **1.1.0** or later\n\n## Authors\n-  [@khalidsheet](https://www.github.com/khalidsheet)\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidsheet%2Foursms-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalidsheet%2Foursms-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidsheet%2Foursms-laravel/lists"}