rhincodon / laravel-letsads
Laravel LetsAds SMS Service Provider
1.1.5
2016-11-26 17:00 UTC
Requires
- php: ^5.6|^7.0
- guzzlehttp/guzzle: ~6.0
- illuminate/support: ~5.1.0|~5.2.0|~5.3.0
Requires (Dev)
- orchestra/testbench: ^3.3
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2024-11-07 00:43:04 UTC
README
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.