mghddev/asanak

library for asanak

Maintainers

Package info

github.com/mghddev/asanak

pkg:composer/mghddev/asanak

Statistics

Installs: 95

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.2.3 2020-10-24 16:12 UTC

This package is not auto-updated.

Last update: 2026-03-08 17:54:25 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);