2017-25 © Pedro Peláez
 

library php

A PHP wrapper for SabaNovin's REST API

image

sabanovin/php

A PHP wrapper for SabaNovin's REST API

  • Sunday, June 3, 2018
  • by sabanovin
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 100 % Grown

The README.md

SabaNovin PHP

Installation

Use in these ways :, (*1)

composer require sabanovin/php

Usage

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)

The Versions

03/06 2018

dev-master

9999999-dev http://github.com/SabaNovin/sabanovin-php

A PHP wrapper for SabaNovin's REST API

  Sources   Download

MIT

The Requires

 

by SabaNovin API Team

api sms sabanovin