Download the PHP package mailyte/laravel-email-templates without Composer

On this page you can find all versions of the php package mailyte/laravel-email-templates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-email-templates

Packagist Tests 50 templates PHP 8.2+ Laravel 12, 13

Mailyte Email Templates — free HTML email templates for Laravel

The largest open-source library of ready-to-use transactional email templates for Laravel and PHP. Fifty free, responsive, dark-mode HTML email templates — welcome, verify email, password reset, invoice, receipt, newsletter and the rest — each with its own design, MIT licensed, ready to send in one line.

Part of Mailyte — open-source mail and collaboration infrastructure — a product of Techies Africa.

Laravel already tells you how to send mail. It has never told you what the mail should look like — so every team rewrites the same welcome email, the same receipt, the same password reset, and every one of them ships an invoice where the amount due is set in the same 15px grey as the VAT line.

This package is the other half. Not a mechanism for storing templates: the templates themselves.

That is the whole integration. No Blade to write, no mailable to scaffold, no designer to brief.


See all 50 before you install

Browse the full gallery → — every template, every layout it supports (plain, minimal, branded, editorial), in light and dark. 294 renders, the data each template expects, and the line of code that sends it. No install required to look.


What is in the box

50 templates across 10 categories, every one of them a distinct piece of design work — 49 different design registers between them, so no two look alike.

Category Templates
Account (9) verify-email-vivid
Billing (9) usage-limit-warning
Onboarding (8) welcome
Notifications (5) weekly-digest
Security (5) two-factor-enabled
System (5) status-update
Collaboration (4) team-invitation
Marketing (3) re-engagement
Newsletter (1) newsletter
Events (1) event-invite

For comparison: Postmark's template collection ships 11, and the nearest Laravel packages ship around five.

Variants, not near-duplicates

Some jobs need more than one answer. verify-email ships five, and they differ by contract, not by colour:

Variant Code Link Why it exists
verify-email ✓ optional Both paths, dark terminal design
verify-email-typeset ✓ optional Warm paper, serif
verify-email-vivid ✓ optional Saturated band, consumer register
verify-email-link — required One click, nothing to type
verify-email-code required — Survives a security gateway rewriting your links

A link-only flow breaks when the recipient opens the mail on a different device than the one that started signup. A code-only flow is the only one that survives a corporate gateway. That is a real difference, and it deserves a real template.


Why these are not the templates you have used before

Every template carries its own design. Not one house style with fifty bodies — a design.json per bundle with its own palette, type scale, font stack, radii and rhythm. The invoice is a ledger with the amount at 56px and figures right-aligned on tabular numerals. The verification email is a dark terminal. The personal nudge has no logo, no social row and no canvas, because it has to look like a person typed it.

They are audited, not asserted. Every claim below is enforced by something that runs:

Audit What it covers
Render Every template × every layout × every sample
Responsiveness 588 renders at 320 / 375 / 480 / 600px — zero overflow
Contrast Every text/background pair, light and dark, to WCAG AA
Alignment Body and footer share one measure, in every layout
Catalog Text alternative, alt text, subject length, Outlook ghost tables, marketing compliance
Lint mailyte:lint — schema, variable cross-check both ways, content and compliance rules
Deliverability mailyte:deliverability — Gmail clip threshold, text-to-image balance, link shape, phrase heuristics

Dark mode is handled properly. Not a media query bolted on: a light/dark pair on every colour token, [data-ogsb] hooks for Outlook.com, a logo that swaps to a light-ink version, social icons whose ink is derived from the surface they sit on, and button plates that move with their labels.

The rendering engine is sandboxed. Templates are Twig with an allowlist — no filesystem, no include, no object methods, no raw filter, autoescaping that cannot be turned off. A template from a stranger is safe to render, which is what makes a public catalog possible at all.


Using it

Send

Or design every email you already send

One flag, and every mail notification in the application — including Laravel's own password reset and email verification — renders through Mailyte. No notification class changes.

One command: every email Laravel already sends — its password reset, its email verification, your notifications, your markdown mailables — now wears the email-changed design. Laravel still builds the message; this replaces only the rendering step, so what your emails say is untouched. A message that chose its own view or markdown template is left alone, and if rendering ever fails the email still sends through Laravel's renderer. See Laravel integration.

Or keep your own Mailable

The same swap as view: or markdown: — your class, your constructor, your attachments, our body:

Brand it once

Everything shared across all fifty lives in one config block:

Per-tenant branding still overrides it at send time:

Make one your own

Four files land in resources/views/vendor/mailyte/templates/email-changed/ — manifest, design tokens, composition, sample data. Edit any of them. Your copy takes precedence everywhere that slug is already used, with no code changes.

--as=my-slug keeps the original and gives you a second template instead.

Or build an editor on it

Templates are composed from 25 blocks, and every one of them declares what it accepts:

That is enough to offer blocks in a picker, generate a form for one nobody has pre-filled, and validate a tree you did not author. The group is the part that matters: of the 204 props across the 25 blocks, only 69 hold words. An editor that renders all of a block's inputs together hands somebody 17 controls for a split panel, only seven of which hold words — rendering the content props with style and spacing behind a disclosure is a form a person can use.

See Blocks.


The preview gallery

Every template rendered live against your own data, across every theme, layout, colour scheme and viewport width — 320px is where a design either holds together or does not. Edit any variable and the preview re-renders as you type. Send a test to yourself from the same screen.

Gated to local environments by default; open it up with Dashboard::auth().


Commands


Documentation


Requirements

PHP 8.2+, Laravel 12 or 13. (Laravel 13 requires PHP 8.3+.)

Laravel 11 is not supported: it is past security support, and Composer's advisory audit blocks its releases.

Contributing

Templates are contributed as four files and validated by mailyte:lint — a JSON schema, a variable cross-check in both directions, and the catalog's content and compliance rules, each with a code you can waive only by writing down why. A contribution that overflows at 320px or fails contrast in dark mode does not merge. See CONTRIBUTING.md.

Authors

Mailyte Email Templates was created by Confidence Ugolo — original author of the package and founder of Mailyte — with Joel Omojefe as co-author.

Confidence Ugolo Creator, original author, founder of Mailyte LinkedIn
Joel Omojefe Co-author LinkedIn

Mailyte Email Templates is part of Mailyte, open-source mail and collaboration infrastructure, and a product of Techies Africa — who maintain this package.

Contributions are welcome under the MIT licence — see CREDITS.md for every third-party asset the sample data references.

Licence

MIT. The templates too — use them, edit them, ship them, sell what you build with them.

Photography in sample data is credited in CREDITS.md and is never a shipped default: installing this package does not make your application hotlink anyone's images.


All versions of laravel-email-templates with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-dom Version *
ext-libxml Version *
illuminate/support Version ^12.0|^13.0
illuminate/mail Version ^12.0|^13.0
illuminate/view Version ^12.0|^13.0
opis/json-schema Version ^2.3
symfony/html-sanitizer Version ^7.0
tijsverkoyen/css-to-inline-styles Version ^2.2
twig/twig Version ^3.14
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mailyte/laravel-email-templates contains the following files

Loading the files please wait ...