Simple class for work with http://123sms.biz (http://123sms.sk) API
This class fasten work with 123sms.biz SMS gateway.
It can: -- Send one / multiple SMS -- Get remaining credit information -- Verify telephone number
If you want more functionality from 123sms.biz API, feel free to message me stromajer.michal@gmail.com.
I implemented only most used functions what I need.
Example:
SEND SMS:
$sms = new Stromaler\Biz123Sms\SmsManager();
$sms->setSender('Me')
->setCredentials('myUsername','password')
->setMessage('Hi, this is test SMS')
->addRecipient('00421111222')
/* added not required methods
//->setGateway(SmsManager::GATEWAY_PREMIUM);
//->setCallbackUrl("https://www.test.com/callback");
*/
->sendSms();
GET CREDIT INFORMATION:
$sms = new Stromaler\Biz123Sms\SmsManager();
$myCredit = $sms->setCredentials('myUsername','password')->getCredit();
VERIFY NUMBER:
$sms = new Stromaler\Biz123Sms\SmsManager();
$numberInfo = $sms->setCredentials('myUsername','password')->verifyNumber('00421111222');
The only dependency is CURL module in PHP.
Enjoy.