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

Brevo Php Laravel Package

getbrevo/brevo-php

Legacy (v1.x) PHP SDK for Brevo API v3, auto-generated from OpenAPI/Swagger. Supports PHP 5.6+ and provides wrappers for Brevo features (email, contacts, campaigns, etc.). Maintained for critical security fixes only; migrate to brevo-php v4.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy Decision: Strengthens the case for adopting this package by expanding Brevo’s capabilities (e.g., consent management and wallet integration) without requiring custom development. Reduces effort for GDPR/CCPA compliance (consent groups) and enables new revenue streams (e.g., digital wallet passes for loyalty programs or promotions).
  • Feature Expansion:
    • Consent Management: Simplifies opt-in/opt-out workflows for email marketing (e.g., auto-assigning contacts to consent groups during import, tracking subscription status). Aligns with regulatory requirements and improves user trust.
    • Digital Wallet Integration: Enables Apple Wallet/Google Wallet passes for promotions, loyalty cards, or event tickets (e.g., "Scan to claim your discount"). Expands omnichannel engagement beyond email.
    • Data Enrichment: Extends contact profiles with consentGroups metadata, enabling segmentation (e.g., "users who opted in via SMS") and personalization (e.g., tailored messages based on consent status).
  • Roadmap Prioritization:
    • Phase 1 (MVP): Leverage consent groups for compliance (e.g., auto-categorizing contacts by consent source) and wallet passes for pilot promotions (e.g., limited-time offers).
    • Phase 2 (Scaling): Integrate wallet passes with e-commerce workflows (e.g., post-purchase loyalty cards) or event ticketing.
    • Phase 3 (Advanced): Explore dynamic consent updates (e.g., triggering re-consent flows for inactive users) or wallet-based authentication (e.g., pass-linked logins).

When to Consider This Package

  • Adopt This Package If:

    • You need consent management for GDPR/CCPA compliance (e.g., tracking opt-in sources, managing group-based permissions).
    • Your product involves digital wallets (e.g., loyalty programs, event tickets, or promotions) and requires Apple Wallet/Google Wallet integration.
    • You’re using Brevo’s v3 API and want to avoid breaking changes while gaining new features (backward-compatible upgrade path).
    • Your team handles contact imports at scale and needs to auto-assign consent groups during bulk operations.
    • You require fine-grained contact metadata (e.g., consentGroups array) for segmentation or analytics.
  • Look Elsewhere If:

    • You’re on Brevo’s v1.x and haven’t migrated to v3/v4. Prioritize upgrading to v4.x first (v5.x assumes v3+).
    • Your use case doesn’t involve consent tracking or wallet passes. Stick to v4.x for core email/CRM features.
    • You need real-time wallet pass validation (e.g., checking redemption status). This release focuses on URL generation; additional endpoints may require custom API calls.
    • Your stack doesn’t support PHP 8.1+ (v5.x requires it). Use v1.x for legacy systems or upgrade PHP.
    • You prefer low-code tools for wallet passes (e.g., Brevo’s native UI or third-party wallet providers like PassKit).

How to Pitch It (Stakeholders)

For Executives:

*"This update adds two high-impact, low-effort features to our Brevo integration:

  1. Consent Groups: Automatically categorize contacts by how they opted in (e.g., website form, SMS, in-store), simplifying GDPR compliance and enabling hyper-personalized messaging. For example, we can send re-engagement campaigns only to users who opted in via email, reducing unsubscribe rates.
  2. Digital Wallet Passes: Let’s issue Apple/Google Wallet passes for promotions, loyalty programs, or event tickets—with zero extra development. Imagine sending a ‘Scan to claim your 20% off’ pass via email, or gifting a concert ticket directly to a user’s wallet. This opens new revenue streams (e.g., upselling passes) and improves customer retention.

Why now?

  • Regulatory Risk Mitigation: Consent groups future-proof us against fines while unlocking targeted campaigns.
  • Customer Experience: Wallet passes reduce friction (no app downloads) and increase engagement (users keep passes on their home screen).
  • Cost Savings: Avoids building custom APIs for these features—3–6 months of dev time saved.

Ask: Approve a pilot for wallet passes (e.g., holiday promotions) and allocate resources to test consent-group segmentation in Q1."*

For Engineering:

*"v5.0.1 adds two major enhancements to the Brevo PHP SDK, both backward-compatible and ready for immediate use:

1. Consent Groups Management

  • New Endpoints: CRUD operations for consent groups (e.g., create a ‘Newsletter Opt-In’ group with SMS signup mode).
  • Contact Import: Add consentGroupIds to bulk imports to auto-categorize contacts.
  • Contact Details: Fetches consentGroups array showing subscription status (e.g., {"id": 123, "status": "subscribed"}).
  • Use Case: Enables GDPR-compliant segmentation (e.g., ‘Only email users who opted in via the app’).

2. Digital Wallet Integration

  • Pass Installation URLs: Generate per-contact links to install passes in Apple/Google Wallet (e.g., for loyalty cards or event tickets).
  • Example Workflow:
    $passUrl = $brevo->wallet->getPassInstallUrl('LOYALTY_CARD_123', 'user@example.com');
    // Send $passUrl via email/SMS for users to save to their wallet.
    
  • Limitations: No real-time validation (e.g., checking if a pass was redeemed). Use Brevo’s webhooks or a custom endpoint for that.

Key Changes

  • Bug Fixes: Empty objects now serialize correctly (e.g., {} instead of []), resolving backend validation errors.
  • No Breaking Changes: Public API unchanged; safe to upgrade.

Recommendation:

  • Short-Term: Use consent groups for compliance (e.g., tag contacts during import) and wallet passes for pilot promotions.
  • Long-Term: Plan to extend wallet passes with redemption tracking via webhooks or a custom API layer.
  • Migration: No action needed unless you’re on v1.x—upgrade to v4.x first, then to v5.x.

Dependencies:

  • PHP 8.1+ (required for v5.x).
  • Brevo API v3+ (v5.x is v3-compatible)."*
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.
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
spatie/mailcoach-vapor
spatie/laravel-javascript-views