negartarh / persiansms
There is no license information available for the latest version (dev-master) of this package.
Persian SMS PHP SDK
dev-master
2024-01-07 21:36 UTC
Requires
- php: >=7.4
- ext-curl: *
This package is auto-updated.
Last update: 2024-12-14 19:14:48 UTC
README
Persian SMS PHP SDK
Install:
composer require negartarh/persiansms:dev-master
Usage:
use Negartarh\Persiansms\PersianSms; require_once __DIR__ . '/../vendor/autoload.php'; $config = (array) [ 'Username' => '', 'Password' => '', 'API' => '', 'FROM' => '', 'FLASH' => '', 'Internation' => '', 'DATE' => '', ]; $user = (string) ''; $pass = (string) ''; $from = (string) ''; $text = (string) ''; $numbers = (array) ['']; $sms = ( new PersianSms($config) ) ->withUser( $user ) ->withPass( $pass ) ->from( $from ) ->send( $text, $numbers ); var_dump($sms);
or user helper function
$sms = persian_sms($config)->send( $text, $numbers );