mghddev/magfa_sms

library for magfa

Maintainers

Details

github.com/mghddev/magfa

Source

Issues

Installs: 84

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Open Issues: 0

pkg:composer/mghddev/magfa_sms

2.3.0 2023-04-19 11:11 UTC

This package is not auto-updated.

Last update: 2025-10-12 02:59:07 UTC


README

Magfa API Client for sending sms

you can find usage of this library down here,

<?php
use mghddev\adp\AdpApiClient;
use mghddev\adp\ValueObject\Message;
use mghddev\adp\ValueObject\ReportVO;

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

include 'vendor/autoload.php';

$domain = '***';
$username = '******';
$password = '*********';

$client = new MagfaApiClient($domain, $username, $password);

$message = (new EnqueueVO())
    ->setTo('9891280***')
    ->setFrom('983000***')
    ->setMessage('سلام آقا')
    ->setMClass(1);

$result = $client->send([$message]);

$status = $client->getStatus([$result[0]]);