evanschleret / lara-mjml
Just a service provider for Spatie's MJML wrapper
Fund package maintenance!
EvanSchleret
Requires
- php: ^8.2
- illuminate/config: ^11.16
- illuminate/support: ^11.16
- spatie/mjml-php: ^1.2
Requires (Dev)
- laravel/pint: ^1.0
- pestphp/pest: ^2.20
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2024-12-02 06:53:35 UTC
README
This package is a wrapper for the mjml email templating engine. It allows you to easily compile mjml templates into html.
It also uses the spatie mjml package under the hood.
Installation
You can install the package via composer:
composer require evanschleret/lara-mjml
Usage
You can use this package by simply calling the view
helper function with the name of your mjml template.
Environment Variables and Configuration
You can set the path to the mjml binary in your .env
file.
MJML_NODE_PATH=null LARA_MJML_BEAUTIFY=false LARA_MJML_MINIFY=true LARA_MJML_KEEP_COMMENTS=false
Publish the config file to customize the package configuration and add additional options to the mjml binary.
php artisan vendor:publish --provider="EvanSchleret\LaraMjml\Providers\LaraMjmlServiceProvider"
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.