davidcb/laravel-esendex
Laravel-Esendex
Laravel 5 wrapper for Esendex SMS
Installation
Install via Composer:
composer require davidcb/laravel-esendex
If you're using Laravel >= 5.5, you can skip this as this package will be auto-discovered.
Add the service provider to config/app.php
Davidcb\Esendex\EsendexServiceProvider::class,
You can register the facade in the aliases array in the config/app.php file
'Esendex' => Davidcb\Esendex\Facades\Esendex::class,
Publish the config file
$ php artisan vendor:publish --provider="Davidcb\Esendex\EsendexServiceProvider"
Set your API key and Client ID on your .env file
ESENDEX_ACCOUNT=EX000000
ESENDEX_EMAIL=user@example.com
ESENDEX_PASSWORD=secret
Usage
You can find all the methods in the original esendex/esendex-php-sdk package.
Examples:
// Send an SMS
$result = LaravelEsendex::send('Sender', '555000000', 'This is the text of the SMS');
// Retrieve inbox messages
$messages = LaravelEsendex::latest();
// Get a message's status
$status = LaravelEsendex::messageStatus('123456');
// Get a message's body
$body = LaravelEsendex::getMessageBodyById('123456');
Related Packages
rinvex/laravel-authy
Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authe...
78,344
32
laravel-notification-channels/authy
Authy notification channel for Laravel, with the ability to send in-app, sms, an...
46,708
57
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.7.1 | ^7.3| | ^8.0| | MIT | |
| 0.6 | ^7.3| | ^8.0 | MIT | |
| 0.5 | ^7.2.5 | ^7.0 | MIT | |
| 0.4.0 | ^7.2.5 | ^7.0 | MIT | |
| 0.3.9 | ^7.2.5 | ^6.0 | MIT | |
| 0.3.7 | >=5.4.0 | ~5.0 | MIT | |
| 0.3.6 | >=5.4.0 | ~5.0 | MIT License | |
| 0.3.5 | >=5.4.0 | ~5.0 | MIT License | |
| 0.3.4 | >=5.4.0 | ~5.0 | MIT License | |
| 0.3.2 | >=5.4.0 | ~5.0 | MIT License | |
| 0.3.1 | >=5.4.0 | ~5.0 | MIT License | |
| 0.3.0 | >=5.4.0 | ~5.0 | MIT License | |
| 0.2.0 | >=5.4.0 | ~5.0 | MIT License | |
| 0.1.0 | >=5.4.0 | ~5.0 | MIT License |