Skip to content

Rhincodon/laravel-letsads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5.x LetsAds Service Provider

Laravel 5.x package for LetsAds SMS provider.

Latest Version on Packagist Software License Build Status Total Downloads

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.

About

Laravel 5.1 LetsAds Service Provider

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages