stromaler / 123sms.biz
Simple class for work with http://123sms.biz (http://123sms.sk) API
Installs: 22 591
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
pkg:composer/stromaler/123sms.biz
Requires
- php: >= 5.3
- ext-curl: *
This package is not auto-updated.
Last update: 2026-02-01 01:18:02 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.