stromaler/123sms.biz

Simple class for work with http://123sms.biz (http://123sms.sk) API

Maintainers

Package info

github.com/stromaler/123sms.biz

Issues

pkg:composer/stromaler/123sms.biz

Statistics

Installs: 22 659

Dependents: 0

Suggesters: 0

Stars: 3

1.3 2018-08-12 18:39 UTC

This package is not auto-updated.

Last update: 2026-04-12 02:20:20 UTC


README

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.