{"id":19235593,"url":"https://github.com/mediumart/orange","last_synced_at":"2025-04-21T05:32:07.158Z","repository":{"id":62526568,"uuid":"95488323","full_name":"mediumart/orange","owner":"mediumart","description":"A laravel adapter for orange api services","archived":false,"fork":false,"pushed_at":"2021-12-28T13:16:10.000Z","size":83,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T10:03:25.393Z","etag":null,"topics":["laravel","orange","orange-api","php","sms"],"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/mediumart.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":"2017-06-26T20:49:30.000Z","updated_at":"2022-06-30T15:35:47.000Z","dependencies_parsed_at":"2022-11-02T14:02:37.760Z","dependency_job_id":null,"html_url":"https://github.com/mediumart/orange","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediumart%2Forange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediumart%2Forange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediumart%2Forange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediumart%2Forange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mediumart","download_url":"https://codeload.github.com/mediumart/orange/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250002270,"owners_count":21359083,"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":["laravel","orange","orange-api","php","sms"],"created_at":"2024-11-09T16:17:28.613Z","updated_at":"2025-04-21T05:32:06.902Z","avatar_url":"https://github.com/mediumart.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mediumart orange\n\n[![Build Status](https://travis-ci.org/mediumart/orange.svg?branch=master)](https://travis-ci.org/mediumart/orange)\n[![Coverage Status](https://coveralls.io/repos/github/mediumart/orange/badge.svg?branch=master)](https://coveralls.io/github/mediumart/orange?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/mediumart/orange/v/stable)](https://packagist.org/packages/mediumart/orange)\n[![License](https://poser.pugx.org/mediumart/orange/license)](https://packagist.org/packages/mediumart/orange)\n\n## Description\n\nA laravel wrapper/adapter for orange api services.\n\n## Installation\n\nUsing composer:\n\n```\n$ composer require mediumart/orange\n```\n\nIf you are using laravel 5.3+ prior to version 5.5, add this to your `config/app.php` inside the `'providers'` array\n\n```php\nMediumart\\Orange\\OrangeServiceProvider::class\n```\n\n## SMS Api\n\n### Configuration\n\nOpen the `config/services.php` and add a key for the `orange\u003esms` service like this:\n\n    'orange' =\u003e [\n        'sms' =\u003e [\n            'client_id' =\u003e '\u003cclient_id\u003e',\n            'client_secret' =\u003e '\u003cclient_secret\u003e'\n        ]\n    ]\n\nUsing these credentials, a `token` will be *fetched* and *cached*, and then automatically be *renewed* a few days before its expiration.\n\n### How to use\n\nYou can resolve an `SMS` client instance from the `Container` like this:\n\n```php\n$sms = app('orange-sms');\n```\n\nOr using type hinting\n\n```php\nuse Mediumart\\Orange\\SMS\\SMS;\n\npublic function index(SMS $sms) \n{\n    /.../\n}\n```\n\nThe documentation on how to use the `$sms` client instance can be found [here](https://github.com/mediumart/orange-sms)\n\n## License\n\nMediumart orange is an open-sourced software licensed under the [MIT license](https://github.com/mediumart/orange/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediumart%2Forange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmediumart%2Forange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediumart%2Forange/lists"}