1. Go to this page and download the library: Download dekate/dekasender 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/ */
dekate / dekasender example snippets
use Dekasender/Whatsapp;
use Dekasender/Sms;
use Dekasender/Email;
// ...
$whatsappClient = new Whatsapp("MY_API_KEY");
$smsClient = new Whatsapp("MY_API_KEY");
$emailClient = new Whatsapp("MY_API_KEY");
$resultWhatsapp = $whatsappClient->sendMessage('880123456789', 'Hello World!');
$resultSms = $smsClient->sendSms('880123456789', 'Hello World!');
$resultEmail = $emailClient->sendEmail("[email protected]", "Subject", "Message", "sender", "[email protected]")
$resultBody = $result->body;
use Dekasender/Facade/Whatsapp;
use Dekasender/Facade/Sms;
use Dekasender/Facade/Email;
// ...
$resultWhatsapp = Whatsapp::sendMessage('880123456789', 'Hello World!');
$resultSms = Sms::sendSms('880123456789', 'Hello World!');
$resultEmail = Email::sendEmail("[email protected]", "Subject", "Message", "sender", "[email protected]")
bash
php artisan vendor:publish --tag=dekasender
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.