dev-master
9999999-dev http://github.com/SabaNovin/sabanovin-phpA PHP wrapper for SabaNovin's REST API
MIT
The Requires
- php >=5.4.0
- sabanovin/php *
by SabaNovin API Team
api sms sabanovin
A PHP wrapper for SabaNovin's REST API
Use in these ways :, (*1)
composer require sabanovin/php
Send Simple SMS by SabaNovin API:, (*2)
```php require DIR . '/vendor/autoload.php';, (*3)
try{
$api = new \SabaNovin\SabaNovinApi( "API-Key" );
$gateway = "100020500";
$text = "متن تست";
$to = array("09370000000", "09120000000");
$result = $api->Send($gateway, $to, $text);
if($result->entries){
foreach($result->entries as $entry) {
echo "reference_id = $entry->reference_id";
echo "status = $entry->status";
echo "mobile = $entry->mobile";
echo "datetime = $entry->datetime";
}
}
}
catch(\SabaNovin\Exceptions\ApiException $e){
echo $e->errorMessage();
}, (*4)
A PHP wrapper for SabaNovin's REST API
MIT
api sms sabanovin