PHP code example of revision-ten / sendinblue

1. Go to this page and download the library: Download revision-ten/sendinblue 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/ */

    

revision-ten / sendinblue example snippets


new \RevisionTen\Sendinblue\Sendinblue\Bundle(),

RevisionTen\Sendinblue\SendinblueBundle::class => ['all' => true],

$sendinblueService = $this->container->get(SendinblueService::class);

try {
    $subscribed = $sendinblueService->subscribe('dailyNewsletterCampagin', '[email protected]', 'My Website', [
        'FNAME' => 'John',
        'LNAME' => 'Doe',
    ]);
} catch (Exception $e) {
    // ...
}

$sendinblueService = $this->container->get(SendinblueService::class);

$unsubscribed = $sendinblueService->unsubscribe('dailyNewsletterCampagin', '[email protected]');