beljic / module-brevo
Magento 2 integration with Brevo API
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=8.1
- getbrevo/brevo-php: ^1.0
README
Magento 2 module for checking a customer's Brevo blacklist status and blocking transactional emails if needed.
Installation
composer require beljic/module-brevo
Configuration
In Admin: Stores > Configuration > Brevo Settings:
- Enabled – enable or disable the module
- API Key – your Brevo API V3 key
- Cache Lifetime – seconds to cache blacklist status
Usage
- Displays status (✅/❌) in the header for logged-in customers.
- Prevents sending order/invoice/shipment emails if blacklisted.
Testing
- PHPUnit tests in
tests/Model/BrevoClientTest.php
. - Run
vendor/bin/phpunit
.