Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sendinblue Bundle Laravel Package

allprogrammic/sendinblue-bundle

View on GitHub
Deep Wiki
Context7

AllProgrammic SendinBlue Bundle

This bundle provides integration and api client of the sendinblue mail broker with Symfony

Installation

Get the dependence in your project

composer require allprogrammic/sendinblue-bundle

Enable the bundle. In your AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new AllProgrammic\Bundle\SendinBlueBundle\AllProgrammicSendinBlueBundle(),
        // ...
    ];
}

Configuration

Get your sendinblue API key here, and add it to your config.yml

sendinblue:
    api:
        key: 'your key'

You may also want to set it through your parameters.yml file.

parameters.yml

parameters:
  sendinblue_api_key: 'your key'

config.yml

sendinblue:
    api:
        key: '%sendinblue_api_key%'

Usage

This bundle provide a service 'sendinblue.api.client' to interact with the sendinblue api.

Example : retrieve your account data

$this->get('sendinblue.api.client')->getAccount();

Example : send a transactional message

$message = new \AllProgrammic\Bundle\SendinBlueBundle\Api\TransactionalMessage('my subject');
$message
    ->from('test@test.com', 'My Company')
    ->addTo('john.doe@acme.com')
    ->html($this->renderView('mytemplate.html.twig'))
    ->text($this->renderView('mytemplate.txt.twig'));

$this->get('sendinblue.api.client')->sendTransactional(message);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky