An open API service indexing awesome lists of open source software.

https://github.com/dachcom-digital/pimcore-emailizr

Pimcore Emailizr - valid email markup generator
https://github.com/dachcom-digital/pimcore-emailizr

email-template inky pimcore zurb-email

Last synced: 6 months ago
JSON representation

Pimcore Emailizr - valid email markup generator

Awesome Lists containing this project

README

          

# Pimcore Emailizr

[![Software License](https://img.shields.io/badge/license-GPLv3-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Software License](https://img.shields.io/badge/license-DCL-white.svg?style=flat-square&color=%23ff5c5c)](LICENSE.md)
[![Latest Release](https://img.shields.io/packagist/v/dachcom-digital/emailizr.svg?style=flat-square)](https://packagist.org/packages/dachcom-digital/emailizr)
[![Tests](https://img.shields.io/github/actions/workflow/status/dachcom-digital/pimcore-emailizr/.github/workflows/codeception.yml?branch=master&style=flat-square&logo=github&label=codeception)](https://github.com/dachcom-digital/pimcore-emailizr/actions?query=workflow%3A%22Codeception%22)
[![PhpStan](https://img.shields.io/github/actions/workflow/status/dachcom-digital/pimcore-dynamic-search/.github/workflows/php-stan.yml?branch=master&style=flat-square&logo=github&label=phpstan%20level%204)](https://github.com/dachcom-digital/pimcore-emailizr/actions?query=workflow%3A%22PHP%20Stan%22)

### Requirements
- Pimcore ^11.4
- PHP >= 8.1
- Twig >= 3.9

### Release Plan

| Release | Supported Pimcore Versions | Supported Symfony Versions | Release Date | Maintained | Branch |
|-----------|----------------------------|----------------------------|--------------|----------------|---------------------------------------------------------------------|
| **>=3.1** | `11.4` | `^6.4` | 08.01.2025 | Feature Branch | master |
| **3.x** | `11.0` | `^6.2` | 30.08.2023 | Feature Branch | master |
| **2.x** | `10.1` - `10.6` | `^5.4` | 21.09.2021 | No | [2.x](https://github.com/dachcom-digital/pimcore-emailizr/tree/2.x) |
| **1.x** | `6.0` - `6.9` | `3.4`, `^4.4` | 06.12.2017 | No | [1.x](https://github.com/dachcom-digital/pimcore-emailizr/tree/1.x) |

## Installation

```json
"require" : {
"dachcom-digital/emailizr" : "~3.2.0",
}
```

Add Bundle to `bundles.php`:
```php
return [
EmailizrBundle\EmailizrBundle::class => ['all' => true],
];
```

- Create valid email markup with inky and inline styles.
- Respect editables in pimcore edit mode.

## Usage
Just extend the emailizr layout:

```twig
{% extends '@Emailizr/layout.html.twig' %}
```

This will include a markup like this. You may want to change it:
```twig
{% apply spaceless %}
{{ emailizr_style_collector.add('@EmailizrBundle/public/css/foundation-for-emails/foundation.min.css') }}
{% emailizr_inline_style %}



{% block headStyles %}

{% autoescape false %}
{{ emailizr_inline_style(emailizr_style_collector) }}
{% endautoescape %}

{% endblock %}

{% apply inky_to_html %}

{% block body %}




{% block content %}
{% endblock %}





                                                           

{% endblock %}

{% endapply %}

{% end_emailizr_inline_style %}
{% endapply %}
```

### Service
If you need to parse values in a custom context, you may use the ContentService.

```php
contentService->checkContent($content, $cssFile, FALSE, TRUE, TRUE);
}
}
```

### Further Information
- [Use Emailizr with FormBuilder](docs/10_FormBuilder.md)

## Upgrade Info
Before updating, please [check our upgrade notes!](UPGRADE.md)

## License
**DACHCOM.DIGITAL AG**, Löwenhofstrasse 15, 9424 Rheineck, Schweiz
[dachcom.com](https://www.dachcom.com), dcdi@dachcom.ch
Copyright © 2025 DACHCOM.DIGITAL. All rights reserved.

For licensing details please visit [LICENSE.md](LICENSE.md)