Package Data | |
---|---|
Maintainer Username: | isaacesso |
Maintainer Contact: | daprod2009@gmail.com (Isaac Esso) |
Package Create Date: | 2017-06-26 |
Package Last Update: | 2021-12-28 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:07:07 |
Package Statistics | |
---|---|
Total Downloads: | 1,804 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 0 |
A laravel wrapper/adapter for orange api services.
Using composer:
$ composer require mediumart/orange
If you are using laravel 5.3+ prior to version 5.5, add this to your config/app.php
inside the 'providers'
array
Mediumart\Orange\OrangeServiceProvider::class
Open the config/services.php
and add a key for the orange>sms
service like this:
'orange' => [
'sms' => [
'client_id' => '<client_id>',
'client_secret' => '<client_secret>'
]
]
Using these credentials, a token
will be fetched and cached, and then automatically be renewed a few days before its expiration.
You can resolve an SMS
client instance from the Container
like this:
$sms = app('orange-sms');
Or using type hinting
use Mediumart\Orange\SMS\SMS;
public function index(SMS $sms)
{
/.../
}
The documentation on how to use the $sms
client instance can be found here
Mediumart orange is an open-sourced software licensed under the MIT license.