Download the PHP package survos/brevo-bundle without Composer

On this page you can find all versions of the php package survos/brevo-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package brevo-bundle

survos/brevo-bundle

Brevo for Symfony: the official SDK (getbrevo/brevo-php) wired onto Symfony HttpClient, CLI commands for lists, campaigns and the blocklist, and Brevo webhooks re-dispatched as a Symfony event any number of listeners can use.

It knows nothing about consent. Who may be pushed to a list or mailed is the caller's decision (see survos/outreach-bundle's SendPolicy).

Install

One key serves both sending (the mailer) and the SDK. Use the API transport, not smtp-relay.brevo.com: the API returns Brevo's message id, which is what webhooks refer to.

The SDK

Brevo\Brevo is a service built on the app's http_client, so calls show in the profiler.

BrevoService wraps the calls apps use most: lists(), campaigns(), upsertContact(), removeFromLists(), blockedContacts(), isConfigured(). upsertContact() never clears Brevo's blocklist flag.

Commands

Command
brevo:status account, plan, credits; says clearly when BREVO_API_KEY is empty
brevo:lists contact lists with subscriber / blocklisted counts
brevo:campaigns [--status=sent] email campaigns
brevo:events [--email=] [--days=7] Brevo's transactional event log: requests, delivered, opened, bounces…
brevo:blocked addresses blocked for transactional mail and why
brevo:contact:push EMAIL --list=2 create/update a contact and add it to lists

Brevo caps page sizes (lists 50, blocked 100, campaigns 100); the service clamps to them, because a larger limit is a 400 that the SDK reports only as "API request failed". BrevoService::errorMessage() recovers Brevo's real message from the exception body.

Admin pages and navbar

Read-only pages at /admin/brevo (Account, Lists, Campaigns, Logs, Blocked), straight from the API, with links into Brevo for editing. With survos/tabler-bundle installed they appear as a Brevo dropdown in the admin navbar (ADMIN_NAVBAR_MENU), shown only when a key is set and the viewer has admin_role. Routes load without any import (kit-bundle's HasConfigurableRoutes); set routes_enabled: false to drop both the pages and the dropdown.

The account's event log covers every app that shares the key, not just this one.

Webhooks

With symfony/webhook and symfony/brevo-mailer installed, the bundle routes /webhook/brevo to Symfony's Brevo parser. It consumes the resulting remote event and dispatches Survos\BrevoBundle\Event\BrevoMailEvent:

In Brevo: Transactional → Settings → Webhook, URL https://<host>/webhook/brevo. To require HTTP Basic auth, put user:password@ in that URL and set BREVO_WEBHOOK_SECRET=user:password.

Configuration


All versions of brevo-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
getbrevo/brevo-php Version ^5.0
nyholm/psr7 Version ^1.8
survos/kit-bundle Version ^2.34
symfony/config Version ^8.1
symfony/console Version ^8.1
symfony/dependency-injection Version ^8.1
symfony/event-dispatcher Version ^8.1
symfony/framework-bundle Version ^8.1
symfony/http-client Version ^8.1
symfony/http-kernel Version ^8.1
symfony/security-core Version ^8.1
twig/twig Version ^3.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package survos/brevo-bundle contains the following files

Loading the files please wait ...