PHPackages                             touson/mswordcleanup - 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. touson/mswordcleanup

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

touson/mswordcleanup
====================

Cleans up all the crappy markup when word outputs HTML

1.0.0(5y ago)062MITPHPPHP &gt;=7.2.0

Since Dec 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/touson/mswordcleanup)[ Packagist](https://packagist.org/packages/touson/mswordcleanup)[ RSS](/packages/touson-mswordcleanup/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

ms-word-cleanup
===============

[](#ms-word-cleanup)

Cleans all the crap out of HTML produced by Microsoft Word

This package is a conversion of the work started by [WebmasterSherpa](https://www.webmastersherpa.com/ms-word-html-cleanup-tool/) into a class based composer package.

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require touson/mswordcleanup

```

Usage examples
--------------

[](#usage-examples)

```
$cleaner = new touson\Cleaner('some HTML');
// Returns the cleaned HTML
$cleaner->cleanHtml();

// Or you can use it statically.  This will new up an instance of the Cleaner class, run the cleanHtml() method and return the result
Cleaner::clean('some HTML');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1977d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

htmlcleanupMicrosoft Word

### Embed Badge

![Health badge](/badges/touson-mswordcleanup/health.svg)

```
[![Health](https://phpackages.com/badges/touson-mswordcleanup/health.svg)](https://phpackages.com/packages/touson-mswordcleanup)
```

###  Alternatives

[spatie/laravel-html

A fluent html builder

8376.4M72](/packages/spatie-laravel-html)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5234.2M76](/packages/ckeditor-ckeditor)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21320.9M15](/packages/caxy-php-htmldiff)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

2899.6M48](/packages/yajra-laravel-datatables-html)[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3383.9M34](/packages/wa72-htmlpagedom)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1697.5M106](/packages/tinymce-tinymce)

PHPackages © 2026

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