ghasedak sms gateway package for PHP

dev-master 2019-12-11 13:46 UTC

This package is auto-updated.

Last update: 2019-12-11 13:47:45 UTC


README

ghasedak for php

Ghasedak sms webservice package for php.

install

The easiest way to install by using Composer:

composer require ghasedak/php:"dev-master"

usage

You need a Ghasedak account. Register and get your API key.

Create an instance from Ghasedak class with your API key:

require __DIR__ . '/vendor/autoload.php';

Send some sms:

try{
    $message = "Test Message Ghasedak-Api";
    $lineNumber = "";
    $receptor = "";
    $api = new \Ghasedak\GhasedakApi('api_key');
    $api->SendSimple($receptor,$message,$lineNumber);
}
catch(\Ghasedak\Exceptions\ApiException $e){
    echo $e->errorMessage();
}
catch(\Ghasedak\Exceptions\HttpException $e){
    echo $e->errorMessage();
}

:)

License

MIT