PHP code example of dachcom-digital / emailizr
1. Go to this page and download the library: Download dachcom-digital/emailizr library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dachcom-digital / emailizr example snippets
return [
EmailizrBundle\EmailizrBundle::class => ['all' => true],
];
use EmailizrBundle\Service\ContentService;
class YourClass
{
protected ContentService $contentService;
public function __construct(ContentService $contentService)
{
$this->contentService = $contentService;
}
public function parse($content)
{
$cssFile = PIMCORE_WEB_ROOT . '/static/css/email.css';
return $this->contentService->checkContent($content, $cssFile, FALSE, TRUE, TRUE);
}
}