1. Go to this page and download the library: Download ibonly/laravel-etextemail 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/ */
use EtextMail;
class SMS
{
/**
* @return float
*/
public function getSMSBalance()
{
dd(EtextMail::getCreditBalance())
}
/**
* @param $message [the message to be processed]
* @return int
*/
public function messageCount($message)
{
dd(EtextMail::getMessageCount($message));
}
/**
* @param $message [the message to be processed]
* @return int
*/
public function characterCount($message)
{
dd(EtextMail::getCharacterCount($message));
}
/**
* @param $destination [reciever's mobile number]
* @param message [the message to be processed]
* @return boolean
*/
public function sendSMS($destination, $message)
{
dd(EtextMail::sendMessage($destination, $message));
}
/**
* @param $destination [reciever's mobile number]
* @param $message [the message to be processed]
* @param $longSMS [number of pages]
* @return boolean
*/
public function sendLongSMS($destination, $message, $longSMS)
{
dd(EtextMail::sendMessage($destination, $message, $longSMS))
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.