PHP code example of drewlabs / envoyer-client
1. Go to this page and download the library: Download drewlabs/envoyer-client 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/ */
drewlabs / envoyer-client example snippets
use Drewlabs\Envoyer\Drivers\Envoyer\Drivers\Mail as MailDriver;
use Drewlabs\Envoyer\Mail;
// Register package using composer autoloader
// ss TOken>');
$result = $driver->sendRequest(
Mail::new()
->from('[email protected]')
->subject('Mail subject')
->to('[email protected]')
->content('...'));
use Drewlabs\Envoyer\Drivers\Envoyer\Drivers\ShortMessage;
use Drewlabs\Envoyer\Message;
// Register package using composer autoloader
// <ACCESS_TOKEN>');
$result = $driver->sendRequest(
Message::new()
->from('<SENDER_ID_ALPHA_NUM>')
->to('<PHONE_NUMBER>')
->content('<MESSAGE>'));