PHP code example of sarfrazrizwan / laravel-brevo
1. Go to this page and download the library: Download sarfrazrizwan/laravel-brevo 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/ */
sarfrazrizwan / laravel-brevo example snippets
use RizwanSarfraz\LaravelBrevo\Facades\Brevo;
// Access Account API
$accountApi = Brevo::accountApi();
$account = $accountApi->getAccount();
// Access Contacts API
$contactsApi = Brevo::contactsApi();
$contacts = $contactsApi->getContacts();
bash
php artisan vendor:publish --provider="RizwanSarfraz\LaravelBrevo\BrevoServiceProvider" --tag="config"