elfet_js/laravel-letsads

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel LetsAds SMS Service Provider

v1.0 2016-04-25 16:17 UTC

This package is not auto-updated.

Last update: 2017-10-14 11:24:40 UTC


README

Laravel 5.2 package for LetsAds SMS provider.

Latest Version on Packagist Software License Total Downloads

Install

You can install the package via composer:

$ composer require elfet_js/laravel-letsads

This service provider must be installed. And facade:

// config/app.php
'providers' => [
    ...
    Elfet\LetsAds\LetsAdsServiceProvider::class,
];
'aliases' => [
    'LetsAds' => Elfet\LetsAds\LetsAdsFacade::class
];

You can publish the migration with:

php artisan vendor:publish --provider="Elfet\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.