gushphp/to-inline-style-email-bundle
A Symfony bundle that inlines CSS in HTML email templates for better rendering across email clients. It wraps the to-inline-style-email library and adds Symfony service and configuration integration, helping prevent stripped or ignored styles in Gmail, Outlook, and other clients.
Architecture fit
Bundle class, a DI extension, service definitions, and a hook into the mail send lifecycle. None of that wiring is usable by Laravel's container, which ignores Symfony bundles entirely.tijsverkoyen/css-to-inline-styles, a framework-agnostic PHP library. That library is already a dependency of the Laravel framework and is used inside Laravel's Markdown mail pipeline, so the core function is available without this bundle.Integration feasibility
composer require into a modern Laravel app is unlikely to succeed cleanly. Expect Symfony 2.x component constraints and PHP upper bounds that conflict with Laravel 8+/PHP 8.x, plus no Laravel auto-discovery, no publishable config, and no service provider.CssToInlineStyles over the HTML part of a message before send) and reimplement it as a ~30-line Laravel listener or Mailable helper against the underlying library.Technical risk
Key questions
composer.json constraints (PHP, symfony/*, swiftmailer/swiftmailer)? Is there any path to install without downgrading framework components?swiftmailer.send event listener, or mailer decorator? This determines whether any of it is portable at all.<style> blocks, media queries, pseudo-classes, shorthand properties, vendor prefixes? What happens on parse failure — throw or pass through?Stack fit
css-to-inline-styles library fits any PHP stack and is the only component worth carrying forward.symfony/mailer MessageListener or an Email renderer decorator around the same library — again, not this bundle.Migration path
tijsverkoyen/css-to-inline-styles directly (verify the version Laravel already resolves) or use Laravel's existing Markdown mail inlining.MessageSending listener that transforms the HTML body, a Mailable build()/render() hook, or a dedicated InlineCssRenderer service.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
TPM recommendation: treat this package as a reference implementation, not a dependency. The composite score (~2.1) and zero dependents align with the assessment: the opportunity is in the underlying library and Laravel's native pipeline, not in this Symfony2 bundle.
How can I help you explore Laravel packages today?