Skip to content

virgiliofilhos/fabricadesms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fábrica de SMS SDK integration

About:

This is a simple SDK to consume the Fábrica de SMS API.

Usage with composer:

{
    require: {
        "ericmaicon/fabricadesms": "v1.0.1"
    }
}

Your config array

array(
    'login' => 'USERNAME',
    'password' => 'PASSWORD',
);

Send a SMS

require_once ('vendor/autoload.php');

$config = array(
  'login' => 'USERNAME',
  'password' => 'PASSWORD',
);

$sms = new fabricadesms\Sms($config);
$sms->sendSms(6281818181, 'message here');

Send Multiple SMS

require_once ('vendor/autoload.php');

$config = array(
  'login' => 'USERNAME',
  'password' => 'PASSWORD',
);

$sms = new fabricadesms\Sms($config);
$sms->sendMultipleSms(array(
    6281818181,
    6281818182
    ), 'message here');

Schedule a SMS

require_once ('vendor/autoload.php');

$config = array(
  'login' => 'USERNAME',
  'password' => 'PASSWORD',
);

$sms = new fabricadesms\Sms($config);
$sms->sendMultipleSms(6281818181, 'message here', '24/12/2015', '16:00');

Get Balance

require_once ('vendor/autoload.php');

$config = array(
  'login' => 'USERNAME',
  'password' => 'PASSWORD',
);

$sms = new fabricadesms\Sms($config);
$sms->getBalance();

About

SDK to consume the fabricadesms.com.br API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%