PHPackages                             antibodies-online/bootstrap-email - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. antibodies-online/bootstrap-email

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

antibodies-online/bootstrap-email
=================================

A PHP port of bootstrap-email ruby package

v2.0.2(2mo ago)78.6k↓30.6%4[1 PRs](https://github.com/antibodies-online/bootstrap-email/pulls)MITHTMLPHP &gt;=8.1CI passing

Since Apr 13Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/antibodies-online/bootstrap-email)[ Packagist](https://packagist.org/packages/antibodies-online/bootstrap-email)[ Docs](https://www.antibodies-online.com/)[ RSS](/packages/antibodies-online-bootstrap-email/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (12)Used By (0)

bootstrap-email
===============

[](#bootstrap-email)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/antibodies-online/bootstrap-email/master/LICENSE)[![Packagist](https://camo.githubusercontent.com/44c7fd7d9da4200ad4b82e930c0b6c78a514b45ed487a618bc1660256f833c69/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e7469626f646965732d6f6e6c696e652f626f6f7473747261702d656d61696c2e737667)](https://packagist.org/packages/antibodies-online/bootstrap-email)[![GitHub issues](https://camo.githubusercontent.com/d87a4c36772198ce263a73ad5c1db6d57ec53576290bc6757db55df99c47730a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f616e7469626f646965732d6f6e6c696e652f626f6f7473747261702d656d61696c2e737667)](https://github.com/antibodies-online/bootstrap-email/issues)[![PHP Composer Test](https://github.com/antibodies-online/bootstrap-email/actions/workflows/php.yml/badge.svg)](https://github.com/antibodies-online/bootstrap-email/actions/workflows/php.yml)

This is a port of [Bootstrap Email](https://github.com/bootstrap-email/bootstrap-email). Thanks to @stuyam!

Installation
------------

[](#installation)

To install, add it to your `composer.json` file:

```
{
  "require": {
      "antibodies-online/bootstrap-email": "master"
  }
}
```

or direct from [packagist](https://packagist.org/packages/antibodies-online/bootstrap-email)

```
composer require antibodies-online/bootstrap-email
```

Usage
-----

[](#usage)

You can use different methods to convert your boostrap-email html to an email client compatible html.

### Use DomDocument

[](#use-domdocument)

```
$scss = new ScssCompiler();

// Create a DOM Document
$doc = new DOMDocument('1.0', 'UTF-8');
\libxml_use_internal_errors(true);
$doc->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'));
\libxml_clear_errors();

$converter = new Compiler($scss);
$doc = $converter->convert($doc);
$html = $doc->saveHTML();
```

### Use Html

[](#use-html)

```
$scss = new ScssCompiler();
$converter = new Compiler($scss);
$html = $converter->compileHtml();
```

### Use Custom Scss

[](#use-custom-scss)

```
$scss = new ScssCompiler();
$scss->setScssFile(setScssHeadFile(compileHtml();
```

Run Unit-Tests
--------------

[](#run-unit-tests)

```
composer test
```

Features missing
----------------

[](#features-missing)

- Add Stack

Documentations
--------------

[](#documentations)

For full documentation, visit [bootstrapemail.com](https://bootstrapemail.com/docs/introduction)

Contributing
------------

[](#contributing)

Really appreciate bug reports. Feel free to ask for additional functionality/fields. But be aware not all feature may be implemented. A Pull Request for your Features would be amazing.

Community
---------

[](#community)

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

[Discuss Bootstrap Email on GitHub](https://github.com/bootstrap-email/bootstrap-email/discussions)

For PHP Port related questions, please open an issue.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~142 days

Recently: every ~3 days

Total

11

Last Release

70d ago

Major Versions

v1.0.5 → v2.0.02026-02-24

v1.x-dev → v2.0.22026-03-09

PHP version history (2 changes)v1.0.0PHP ^7.1 || ^8.0

v2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/eddcf88f91820b20232215f4296c56e46fed9860d941f9249bf1ae15d8507b90?d=identicon)[DemigodCode](/maintainers/DemigodCode)

---

Top Contributors

[![DemigodCode](https://avatars.githubusercontent.com/u/36764562?v=4)](https://github.com/DemigodCode "DemigodCode (48 commits)")[![paulmhh](https://avatars.githubusercontent.com/u/11542301?v=4)](https://github.com/paulmhh "paulmhh (3 commits)")[![fonnets](https://avatars.githubusercontent.com/u/90871496?v=4)](https://github.com/fonnets "fonnets (2 commits)")

---

Tags

bootstrapemailmailphpresponsivemailemailbootstrapresponsive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/antibodies-online-bootstrap-email/health.svg)

```
[![Health](https://phpackages.com/badges/antibodies-online-bootstrap-email/health.svg)](https://phpackages.com/packages/antibodies-online-bootstrap-email)
```

###  Alternatives

[zbateson/mail-mime-parser

MIME email message parser

54149.2M79](/packages/zbateson-mail-mime-parser)[ddeboer/imap

Object-oriented IMAP for PHP

9153.9M11](/packages/ddeboer-imap)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[coconutcraig/laravel-postmark

Laravel package for sending mail via the Postmark API

2152.9M1](/packages/coconutcraig-laravel-postmark)[voku/email-check

email-check (syntax, dns, trash, ...) library

504.1M4](/packages/voku-email-check)[mlocati/spf-lib

Parse, build and validate SPF (Sender Policy Framework) DNS records

67867.9k2](/packages/mlocati-spf-lib)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
