PHP code example of gushphp / to-inline-style-email-bundle
1. Go to this page and download the library: Download gushphp/to-inline-style-email-bundle 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/ */
gushphp / to-inline-style-email-bundle example snippets
php
new RobertoTru\ToInlineStyleEmailBundle\RobertoTruToInlineStyleEmailBundle(),
php
public function indexAction() {
$converter = $this->get('css_to_inline_email_converter');
...
}
php
$converter = $this->get('css_to_inline_email_converter');
$html = ...; // get the HTML here
$css = ....; // get the CSS here
return $converter->inlineCSS($html, $css);