Skip to content

bkonetzny/mjml-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MjmlRenderer

Render MJML markup in PHP.

Example

require 'vendor/autoload.php';

$input = '<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-image width="100" src="/assets/img/logo-small.png"></mj-image>
        <mj-divider border-color="#F45E43"></mj-divider>
        <mj-text font-size="20px" color="#F45E43" font-family="helvetica">Hello World</mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>';

$mjml = new \bkonetzny\MjmlRenderer\Renderer();

echo $mjml->render($input);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages