1. Go to this page and download the library: Download mmdm/sim-fa-sms library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mmdm / sim-fa-sms example snippets
composer
// SMSFactory from Sim\SMS\SMSFactory namespace
$panel = SMSFactory::instance(SMSFactory::PANEL_NIAZPARDAZ);
$niazPardaz = new \Sim\SMS\Factories\NiazPardaz();
$panel->setParameter('fromNumber', your_panel_number);
// also you can set parameter like an object
$panel->fromNumber = your_panel_number;
$panel->getParameter('fromNumber');
// also you can get parameter like an object
$panelNumber = $panel->fromNumber;
$creditCount = $panel->getCredit();
[
'code' => a code according to operation,
'message' => a message according to code,
]
[
[
'code' => a code according to operation,
'message' => a message according to code,
],
[
'code' => a code according to operation,
'message' => a message according to code,
],
...
]
// call after an operation
$isSuccessful = $panel->isSuccessful();
$panel->onError(function ($code, $message, $parameters) {
// do something
});
$niazPardaz = new \Sim\SMS\Factories\NiazPardaz();
// or add credentioal information in construct
$niazPardaz = new \Sim\SMS\Factories\NiazPardaz(panel_username, panel_password);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.