kaufmanndigital / email-editing-installer
Composer plugin to install MJML Node-Modules for kaufmanndigital/email-editing
Package info
github.com/KaufmannDigital/KaufmannDigital.EmailEditing.Installer
Type:composer-plugin
pkg:composer/kaufmanndigital/email-editing-installer
Requires
- composer-plugin-api: ^2.0
- spatie/mjml-php: ^1.3
Requires (Dev)
- composer/composer: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Composer plugin that automatically runs npm install for the spatie/mjml-php dependency after a Composer install or update.
This package is a companion to kaufmanndigital/email-editing. It requires spatie/mjml-php itself, so it is the only package needed to render MJML locally with Node.js:
composer config allow-plugins.kaufmanndigital/email-editing-installer true
composer require kaufmanndigital/email-editing-installer
Requires Node.js >= 20 (MJML 5) and npm on the machine running Composer and rendering the emails. Not needed if EmailEditing renders MJML via an API (mjmlRendering.converter.mode: 'api').
Versions
| Installer | spatie/mjml-php | MJML | EmailEditing |
|---|---|---|---|
| 2.x | ^1.3 (required) | 5 | ^4.0 |
| 1.x | - | 4 | 2.x, 3.x |
Why does this exist?
spatie/mjml-php ships without its Node dependencies pre-installed and requires an npm install to be run in its package directory. This plugin ensures that step happens automatically as part of composer install / composer update, without any manual deployment steps.