fintech-fab / smstraffic
SMSTRAFFIC.ru API wrapper with Laravel Support
Installs: 1 397
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 3
Open Issues: 0
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: 6.*
- illuminate/config: 5.*
- illuminate/support: 5.*
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);