fintech-fab/smstraffic

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

SMSTRAFFIC.ru API wrapper with Laravel Support

dev-master 2015-06-29 10:55 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:42:37 UTC


README

SMSTRAFFIC.ru API wrapper with Laravel Support

Installation:

composer require fintech-fab/smstraffic

Or in composer.json:

"require": {
    "fintech-fab/smstraffic": "4.2"
},

Config example (services.php):

<?php

return [

	'smstraffic' => [
		'from'     => '',
		'login'    => '',
		'password' => '',
		'latin'    => false,
		'pretend'  => true,
	],

];

Simple usage:

<?php
use FintechFab\Smstraffic\SmsTraffic;

/**
 * @var SmsTraffic $sms
 */

$sms = App::make(SmsTraffic::class);

$id = $sms->send('%PHONE%', 'test message');

$status = $sms->status($id);

$balance = $sms->balance();

var_dump($id, $status, $balance);