scottrobertson/premailer

Pre-flight for HTML email - PHP Wrapper.

Installs: 3 609

Dependents: 0

Stars: 9

Watchers: 3

Forks: 1

Language: PHP

1.1 2014-04-03 14:34 UTC

README

Build Status

Latest Stable Version Total Downloads Latest Unstable Version License

Pre-flight for HTML email - PHP Wrapper.

http://premailer.dialect.ca

Example

<?php

require __DIR__ . '/vendor/autoload.php';

$premailer = new ScottRobertson\Premailer\Request();

// Convert our HTML email using Premailer
$response = $premailer->convert('<h1>Hi</h1>');

// Download the generated HTML file from Premailer
echo $response->downloadHtml();

Todo

  • Documentation