mghddev/asanak

library for asanak

2.2.3 2020-10-24 16:12 UTC

This package is not auto-updated.

Last update: 2025-04-06 13:26:17 UTC


README

Asanak Web service for sending sms

you can find usage of this library down here,

<?php

use mghddev\asanak\AsanakCurlApiClient;
use mghddev\asanak\SendSmsVO;

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

include 'vendor/autoload.php';

$client = new AsanakCurlApiClient('***', '###');

$sms = new SendSmsVO();
$msgIDs = $sms->setSource('98******')
->setDestination(['0912*****'])
->setMessage('سلام پسر گل');

$res = $client->sendSms($sms);
//$res = $client->getStatus($res);
var_dump($res);