PHPackages                             gorilladash/outlook-formatter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gorilladash/outlook-formatter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gorilladash/outlook-formatter
=============================

Scan all dom and add/replace width attribute, make sure table/img in outlook desktop will be working

v5.0.0(4y ago)0171MITPHPPHP ^8.0

Since Feb 7Pushed 4y ago2 watchersCompare

[ Source](https://github.com/GorillaDash/outlook-formatter)[ Packagist](https://packagist.org/packages/gorilladash/outlook-formatter)[ Docs](https://github.com/GorillaDash/outlook-formatter)[ RSS](/packages/gorilladash-outlook-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

Outlook Formatter
=================

[](#outlook-formatter)

Scan all dom and add/replace width attribute, make sure table/img in outlook desktop will be working

**Only affect outlook desktop**

How to use
----------

[](#how-to-use)

### Laravel 5.5

[](#laravel-55)

```
    use OutlookFormatter;

    $html = ''; // your html
    $result = OutlookFormatter::format($html);
```

### PHP

[](#php)

```
    use GorillaDash\OutlookFormatter\Formatter;

    $formatter = new Formatter(800); // First argument is max width for container;
    $formatter->setAutoCenter(['table' => true, 'image' => true]); // Set all table/td/image to be center, default is false

    $html = ''; // your html
    $result = $formatter->format($html);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~221 days

Recently: every ~245 days

Total

8

Last Release

1463d ago

Major Versions

v1.1.0 → v2.0.02019-08-29

v2.0.0 → v3.0.02019-12-27

v3.0.0 → v4.0.02020-12-22

v4.1.0 → v5.0.02022-05-07

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v5.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![CasperLaiTW](https://avatars.githubusercontent.com/u/5094008?v=4)](https://github.com/CasperLaiTW "CasperLaiTW (10 commits)")

---

Tags

formatteroutlook

### Embed Badge

![Health badge](/badges/gorilladash-outlook-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/gorilladash-outlook-formatter/health.svg)](https://phpackages.com/packages/gorilladash-outlook-formatter)
```

###  Alternatives

[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

461.5M3](/packages/kartik-v-php-date-formatter)[hallindavid/manny

a package of manipulators that hopefully come in useful for those of us who always forget regex when we need it (manny is short for manipulation)

38103.3k2](/packages/hallindavid-manny)[mihaeu/html-formatter

HTML Formatter pritifies HTML content by applying proper intendation (no tidy, purification, etc.).

1770.8k4](/packages/mihaeu-html-formatter)

PHPackages © 2026

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