noticero / notice-sdk-php
PHP SDK Wrapper around notice.ro API
v1.1
2025-07-25 18:18 UTC
Requires
- guzzlehttp/guzzle: ^7.0
README
Check documentation before:
Installation:
composer require noticero/notice-sdk-php
Usage:
use Notice\SdkPhp\SdkPhp;
require_once 'vendor/autoload.php';
$notice = new SdkPhp('YOUR-API-TOKEN');
Send SMS:
Using just number and message:
$notice->sendSms([
'number' => '07XXXXXXXX',
'message' => 'Hello, world!'
]);
Using template_id and variables:
$notice->sendSms([
'number' => '07XXXXXXXX',
'template_id' => 1,
'variables' => [
'order_id' => '123',
'total' => '100',
]
]);
See available variables to use with templates here
Get Incoming SMS List:
$notice->getIncomeSmsList();
Get Sent SMS List:
$notice->getSentSmsList();
Get Template List:
$notice->getTemplates();