1. Go to this page and download the library: Download reatos/zenvia 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/ */
reatos / zenvia example snippets
via\Request as Zenvia;
$Zenvia = new Zenvia('Login', 'Senha');
$response = $Zenvia->sendSMS('55319999999999', 'Testando SMS'/*, '2014-08-22T14:55:00' // Campo Opcional para agendar envio */);
print_r($response);
// ...
via\Request as Zenvia;
$Zenvia = new Zenvia('Login', 'Senha');
$messages = [
[
// 'schedule' => '2014-08-22T14:55:00', // Campo Opcional para agendar envio
'to' => '55319999999999',
'msg' => 'Testando SMS'
],
[
// 'schedule' => '2014-08-22T14:55:00', // Campo Opcional para agendar envio
'to' => '55319999999999',
'msg' => 'message 2'
],
];
$response = $Zenvia->sendSMSMultipe($messages);
print_r($response);
// ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.