Simple class for work with http://123sms.biz API CLIENT
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

123sms.biz API PHP CLIENT

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 stromaler@gospace.sk.

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.