negartarh / persiansms
Persian SMS PHP SDK
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/negartarh/persiansms
Requires
- php: >=7.4
- ext-curl: *
This package is auto-updated.
Last update: 2025-10-14 21:00:18 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 );