mediumart/orange
mediumart orange
Description
A laravel wrapper/adapter for orange api services.
Installation
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
SMS Api
Configuration
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.
How to use
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
License
Mediumart orange is an open-sourced software licensed under the MIT license.
Related Packages
A php library to interact with the orange sms api for MiddleEast and Africa.
Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authe...
Authy notification channel for Laravel, with the ability to send in-app, sms, an...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.0 | >=7.3 | ~7.0| | MIT | |
| 1.0.2 | ^7.2 | ^6.0| | MIT | |
| 1.0.1 | ^7.2 | ^6.0 | MIT | |
| 1.0.0 | ^7.2 | 6.0 | MIT | |
| 0.2.9 | >= 5.6 | ^5.1| | MIT | |
| 0.2.8 | >= 5.6 | ^5.1| | MIT | |
| 0.2.7 | >= 5.6 | ^5.1| | MIT | |
| 0.2.6 | >= 5.6 | ~5.1| | MIT | |
| 0.2.5 | >= 5.6 | ^5.1| | MIT | |
| 0.2.4 | >= 5.6 | ^5.1| | MIT | |
| 0.2.3 | >= 5.6 | ^5.1| | MIT | |
| 0.2.2 | >= 5.6 | ^5.3 | MIT | |
| 0.2.1 | >= 5.6 | ^5.3 | MIT | |
| 0.2.0 | >= 5.6 | ^5.3 | MIT | |
| 0.1.0 | >= 5.6 | MIT | ||
| 0.0.4 | >= 5.6 | MIT | ||
| 0.0.3 | >= 5.6 | MIT | ||
| 0.0.2 | >= 5.6 | MIT | ||
| 0.0.1 | >= 5.6 | MIT |