This is a simple SDK to consume the Fábrica de SMS API.
{
require: {
"ericmaicon/fabricadesms": "v1.0.1"
}
}
array(
'login' => 'USERNAME',
'password' => 'PASSWORD',
);
require_once ('vendor/autoload.php');
$config = array(
'login' => 'USERNAME',
'password' => 'PASSWORD',
);
$sms = new fabricadesms\Sms($config);
$sms->sendSms(6281818181, 'message here');
require_once ('vendor/autoload.php');
$config = array(
'login' => 'USERNAME',
'password' => 'PASSWORD',
);
$sms = new fabricadesms\Sms($config);
$sms->sendMultipleSms(array(
6281818181,
6281818182
), 'message here');
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');
require_once ('vendor/autoload.php');
$config = array(
'login' => 'USERNAME',
'password' => 'PASSWORD',
);
$sms = new fabricadesms\Sms($config);
$sms->getBalance();