1. Go to this page and download the library: Download daniyal2959/persian-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/ */
namespace Sms\Driver;
use Sms\Contract\IDriver;
use Sms\Driver;
class MyDrive extends Driver implements IDriver
{
const BASE_URL = '';
/**
* @return void
*/
public function __construct()
{
$this->client = new Http(self::BASE_URL, 30, []);
}
/**
* @return bool|mixed|string
*/
public function sendPattern()
{
// TODO: Implement send pattern code for current service provider
}
/**
* @param $text
* @return bool|mixed|string
*/
public function message($text)
{
// TODO: Implement send message code for current service provider
}
/**
* @return void
*/
public function setCredential()
{
// TODO: Implement set credential code for current service provider
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.