rhincodon/laravel-letsads
Laravel 5.x LetsAds Service Provider
Laravel 5.x package for LetsAds SMS provider.
Install
You can install the package via composer:
$ composer require rhincodon/laravel-letsads
This service provider must be installed. And facade:
// config/app.php
'providers' => [
...
Rhinodontypicus\LetsAds\LetsAdsServiceProvider::class,
];
'aliases' => [
'LetsAds' => Rhinodontypicus\LetsAds\LetsAdsFacade::class,
];
You can publish the migration with:
php artisan vendor:publish --provider="Rhinodontypicus\LetsAds\LetsAdsServiceProvider"
Usage
In all cases will be returned SimpleXML object with appropriate information about action or ErrorException:
use LetsAds;
// Get balance
LetsAds::balance();
// Send messages
// $phones may be string or array
LetsAds::send($message, $from, $phones);
// Get messages statuses
LetsAds::status($messageId);
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
alhaji-aki/laravel-sms
A package that allows developers integrate sms providers and provide a common ap...
5,952
2
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.1.5 | ^5.6| | ~5.1.0| | MIT | |
| 1.1.4 | ^5.6| | ~5.1.0| | MIT | |
| 1.1.3 | ^5.6| | ~5.1.0| | MIT | |
| 1.1.2 | ^5.6| | ~5.1.0| | MIT | |
| 1.1.1 | ^5.6| | ~5.1.0| | MIT | |
| 1.1 | ^5.6| | ~5.1.0| | MIT | |
| 1.0.2 | ^5.6| | ~5.1.0| | MIT | |
| 1.0.1 | >=5.6.0 | 5.1.* | MIT | |
| 1.0.0 | >=5.6.0 | 5.1.* | MIT |