Download the PHP package getodden/mail without Composer
On this page you can find all versions of the php package getodden/mail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getodden/mail
More information about getodden/mail
Files in getodden/mail
Package mail
Short Description Responsive, slot-based email builder and compiler for Laravel: modular blocks, MJML/HTML import, merge tags, AMP, plain-text fallback, and pre-send audits.
License MIT
Homepage https://odden.io
Informations about the package mail
Laravel Mail Builder (getodden/mail)
A modular, Outlook-bulletproof email building, auditing, and compilation engine for Laravel applications.
Requires PHP 8.3+ and Laravel 12 or 13. Maintained by CaskStack, LLC.
Key Features
- 29 Modular Responsive Slots: Pre-built responsive components that collapse smoothly to 100% width on mobile devices, with Microsoft Outlook MSO conditional table compatibility.
- Universal Compilation Engine: Compile modular slots or structured
EmailDocumentinstances into inlined responsive HTML (EmailSlotCompiler) or interactive AMP for Email (AmpEmailCompiler). - Liquid-Style Personalization: Fast token interpolation supporting uppercase, lowercase, capitalize, date formatting, currency, number, pluralize, default values, and inline conditionals (
{% if condition %}...{% else %}...{% endif %}). - Deliverability & Spam Auditor: Automatic pre-flight auditing calculating spam trigger scores, missing unsubscribe headers, image-to-text ratios, dark mode color inversion contrast, and live DNS deliverability checks (SPF, DMARC, BIMI).
- Multi-Device Screenshot Simulation: Adapter interface for testing email rendering across Outlook Windows (120 DPI), Apple Mail iOS 17 Dark Mode, macOS Sonoma, and Gmail Android.
- Theme & Typography Engine: Built-in design system presets (Corporate Slate, Midnight Indigo, Emerald SaaS, Warm Sunset, Monochrome Minimal) with automatic Google Fonts web font imports and Outlook fallback font stacks.
- Bidirectional Ingestion: Export templates to HTML, Plain Text, MJML, or ZIP packages—and reverse-parse external raw HTML or standard MJML into native modular slots.
- WCAG 2.1 AA Contrast Auditor: Exact mathematical relative luminance algorithm evaluating text and button contrast compliance.
- Enterprise Transport: Send via
TemplateMailablewith RFC 8058 1-click unsubscribe headers, custom attachments, and automatic CID (Content-ID) inline image embedding. - Filament Visual Builder: Full Filament builder schema component with audience targeting and conditional visibility rules.
Installation
Publish configuration and views (optional):
Configuration
config/mail-builder.php sets the default layout theme (width, fonts, colors) and the footer identity used when a slot doesn't provide one:
CAN-SPAM and similar laws require a physical mailing address in marketing email, so set MAIL_BUILDER_ADDRESS or pass address to each footer slot.
Quick Start
1. Building and Compiling an Email
2. Personalization & Merge Tags
Personalization supports dot-notation object paths, Liquid filters, and inline conditionals:
Built-in tags are {{unsubscribe_url}}, {{current_year}}, and {{web_view_url}}. Register your application's own tags so they appear in the Filament builder's tag picker and in previews:
Available Filters:
capitalize,title,lower,upper,trimdate: 'Format'(PHPdate()formatting)currency: 'USD'number: 2(decimal places)pluralize: 'item', 'items'truncate: 50default: 'fallback value'
3. Ingestion (HTML & MJML Import)
Import external templates into editable modular slots:
4. Deliverability, Performance & Accessibility Audits
5. Sending Emails via TemplateMailable
6. Filament Visual Builder Integration
Requires filament/forms ^5.0. To integrate the modular slot builder into any Filament Resource:
Supported Slot Types (29 Total)
| Slot Type | Key | Description |
|---|---|---|
| Header & Logo | header |
Branding bar with logo, web-view link, and optional date |
| Hero Banner | hero |
Headline, badge pill, subtext, and bulletproof CTA button |
| Text & Content | body_text |
Editorial rich text with merge tags and alignments |
| CTA Button | button |
Bulletproof Outlook VML action button |
| 2-Column Grid | two_column |
Side-by-side cards with reverse mobile stacking (rtl) |
| 3-Column Grid | three_column |
Three responsive feature cards |
| 4-Column Wall | four_column |
Partner logo trust wall or compact icon links |
| Asymmetric Split | asymmetric_columns |
1/3 + 2/3 editorial sidebar split |
| Feature List | features |
Bulleted list with icons, bold titles, and descriptions |
| Testimonial | testimonial |
Quote callout with star rating and author attribution |
| Stat Box | stat_box |
Key metric numbers and percentage badges |
| Divider Line | divider |
Horizontal rule or spacer with configurable height |
| Labeled Divider | labeled_divider |
Horizontal line with centered text badge (e.g. "OR") |
| Social Links | social_links |
Multi-channel social icon bar |
| App Badges | app_badges |
Official Apple App Store and Google Play buttons |
| Data Table | data_table |
Multi-column comparison table with zebra striping |
| Image Banner | image_banner |
Responsive banner image with alt text and link |
| Video Card | video_card |
Thumbnail with play button overlay linking to video |
| Pricing Grid | pricing_grid |
Multi-tier pricing cards with featured plan highlight |
| Rating Scale | rating_bar |
1-Click NPS or CSAT survey buttons (1-10 or 1-5 scale) |
| Countdown Urgency | countdown_timer |
Urgency banner with deadline and offer CTA |
| Accordion / FAQ | accordion |
Stacked Q&A cards for policies and instructions |
| Dynamic Feed | dynamic_feed |
Product recommendation grid with live JSON hydration |
| Order Receipt | order_receipt |
Itemized invoice summary with taxes and subtotals |
| RSS Article Feed | rss_feed |
Syndicated blog digest with publication dates |
| Product Catalog | product_catalog |
Ecommerce cards with compare-at pricing and buy CTAs |
| Coupon Code | coupon_code |
Promo voucher card with dashed border and expiry |
| Footer & Compliance | footer |
CAN-SPAM / GDPR address and unsubscribe link |
| Custom Raw HTML | html |
Bespoke HTML code component |
Testing
License
The MIT License (MIT). See LICENSE.md.
All versions of mail with dependencies
ext-dom Version *
ext-libxml Version *
guzzlehttp/guzzle Version ^7.8.2 || ^8.0
laravel/framework Version ^12.0 || ^13.0
tijsverkoyen/css-to-inline-styles Version ^2.2.5