PHP code example of hofmannsven / laravel-brevo
1. Go to this page and download the library: Download hofmannsven/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/ */
hofmannsven / laravel-brevo example snippets
use Hofmannsven\Brevo\Facades\Brevo;
// Account
$result = Brevo::AccountApi()->getAccount();
var_dump($result);
// Domains
$result = Brevo::DomainsApi()->getDomains();
var_dump($result);
// Contacts
$result = Brevo::ContactsApi()->getContacts();
var_dump($result);
// With custom client
$result = Brevo::AccountApi(
new \GuzzleHttp\Client()
)->getAccount();
bash
php artisan vendor:publish --provider="Hofmannsven\Brevo\BrevoServiceProvider"