twig/inky-extra
Twig extension adding an inky_to_html filter to convert ZURB Inky email templates into responsive HTML. Useful for generating email markup from simple Inky components directly within Twig templates.
<table> spam) with semantic, maintainable templates for critical flows like password resets, order confirmations, and invoices. Reduces support tickets and rendering bugs across email clients.composer show twig/twig and php -v).*"This package eliminates email as a technical bottleneck, turning it into a scalable, cost-effective asset for customer communications. Here’s the business case:
Problem:
Solution:
ROI:
Ask for:
Why Now? This isn’t just a tool—it’s a strategic lever to differentiate your customer communications while cutting costs. Let’s start with a low-risk pilot to prove the value."*
*"Stop wasting time on Outlook hacks. This package lets you write emails in a clean, component-based way—then convert them to production-ready HTML with a single Twig filter. Here’s how to use it in Laravel/Symfony:
composer require twig/inky-extra
spatie/laravel-twig; else add to config/twig.php):
// For Symfony/Laravel (manual registration)
$twig->addExtension(new \Twig\Extra\Inky\InkyExtension());
resources/views/emails/welcome.inky):
<container>
<row>
<columns large="6">
<h1>Welcome, {{ name }}!</h1>
<p>Thanks for signing up.</p>
</columns>
</row>
</container>
{% set name = "John" %}
{{ include('emails/welcome.inky', {'name': name}) | inky_to_html }}
| Use Case | Implementation Example | Benefits |
|---|---|---|
| Transactional Emails |
How can I help you explore Laravel packages today?