Weave 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
Sparkpost Bundle

Sparkpost Bundle Laravel Package

hanfrey/sparkpost-bundle

hanfrey/sparkpost-bundle provides a Symfony bundle integration for SparkPost, wiring configuration and services so PHP applications can send transactional email via SparkPost's API. Useful for projects that need SparkPost email delivery without manual service setup.

View on GitHub
Deep Wiki
Context7

This bundle provides integration with the Sparkpost API library, allowing you to interact with the Sparkpost API from within your Symfony projects

Frequently asked questions about Sparkpost Bundle
Can I install hanfrey/sparkpost-bundle in a Laravel application?
No. This package is a Symfony bundle that ships a Bundle class, a DI Extension, and services.yml wiring, none of which Laravel auto-discovers or boots. Laravel uses service providers and the container, so there is no integration path without forking or writing a ground-up adapter. Treat it as not installable in a Laravel app.
Is hanfrey/sparkpost-bundle a Laravel mail transport or notification channel?
No. It is a thin dependency-injection wrapper over the official sparkpost/sparkpost PHP SDK and adds configuration plumbing only. It provides no Laravel Mail transport, no Notification channel, no queue integration, and no event or webhook handling. If you need SparkPost in Laravel Mail, you must build a custom transport yourself.
How do I send transactional email with SparkPost in Laravel?
Install the official sparkpost/sparkpost SDK directly and bind it as a singleton in a Laravel service provider. Wrap it behind an internal EmailProvider interface and implement a custom Laravel Mail transport, or use SparkPost's SMTP relay as a fast path. Queued mail and notifications then work through native Laravel machinery.
Which Laravel and PHP versions does hanfrey/sparkpost-bundle support?
None officially, because it is not a Laravel package. The bundle almost certainly targets an older Symfony and PHP baseline and will not satisfy Laravel 9 through 11 dependency constraints, which require PHP 8.1 and above. Expect Composer conflicts; verify any constraint against your composer.lock before considering a fork.
How do you install and configure hanfrey/sparkpost-bundle?
In Symfony you register the bundle in bundles.php and supply SparkPost credentials through bundle configuration YAML. Those steps have no equivalent in Laravel, where you would instead publish a config file from a service provider and read values from env. There is no artisan install command or config publishing in this package.
Is hanfrey/sparkpost-bundle actively maintained and production ready?
Signals point to no. The repository has roughly 9 stars, zero dependents, and a quality score around 0.265, with a single maintainer and no visible activity. There is no evidence of production use, so treat it as unvetted third-party code with high abandonment risk. Pin any dependency and plan for owning patches.
What are the alternatives to hanfrey/sparkpost-bundle for Laravel?
Use the official sparkpost/sparkpost SDK, which is framework-agnostic and directly supported, wrapped in your own service provider and transport. SparkPost's SMTP relay is another low-effort option that plugs into Laravel's existing SMTP mailer. If the ESP decision is still open, compare SES, Postmark, and Mailgun behind the same internal interface so the provider stays swappable.
Does hanfrey/sparkpost-bundle handle SparkPost webhooks, events, or suppression lists?
No. The bundle is a configuration and service-wiring layer only, so it does not process delivery events, manage suppression lists, or expose webhook endpoints. Any webhook handling, templated sends, or suppression management must be implemented separately against the SparkPost API. Plan those pieces as part of your own adapter.
How should SparkPost API keys be stored and rotated in a Laravel app?
Keep credentials in environment variables read through config files, never committed to the repository. This bundle offers no first-class secret-manager integration, so key rotation and least-privilege scoping must be designed into your own adapter. Restrict keys to the sending permissions you actually need and rotate them on a schedule.
Can hanfrey/sparkpost-bundle be used in a Symfony project instead of Laravel?
It is feasible in principle because the package is built for Symfony, but verify its constraints against Symfony 5, 6, or 7 and your PHP version first. Given the low maintenance signals, many teams prefer the official SparkPost SDK plus a hand-rolled service definition over an unmaintained bundle. The effort is similar and the support posture is better.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons