PHPackages                             peteheaney/dewidow - 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. peteheaney/dewidow

AbandonedArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

peteheaney/dewidow
==================

A Twig filter for Craft CMS 3 to remove text widows

1.0.0(8y ago)021MITPHP

Since Jan 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/peteheaney/dewidow)[ Packagist](https://packagist.org/packages/peteheaney/dewidow)[ RSS](/packages/peteheaney-dewidow/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

DeWidow plugin for Craft 3
==========================

[](#dewidow-plugin-for-craft-3)

A Twig filter for Craft 3 to remove text widows.

By replacing the space between the last two words in a string with `&nbsp;`, this filter will prevent widows on any field containing text.

Requirements
------------

[](#requirements)

This plugin requires Craft 3.

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

[](#installation)

To install the plugin:

1. open your terminal and go to your Craft project:

    `cd /path/to/project`
2. tell Composer to load the plugin:

    ```
     composer require peteheaney/dewidow

    ```
3. In the Control Panel, go to Settings → Plugins and click the "Install" button for DeWidow.

Using DeWidow
-------------

[](#using-dewidow)

Simply add the `dewidow` filter to any field containing text and it will remove widows from the text.

```
{{ myTextField | dewidow | raw }}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3029d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cmsCraftcraftcmscraft-pluginwidowdewidow

### Embed Badge

![Health badge](/badges/peteheaney-dewidow/health.svg)

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

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[nystudio107/craft-typogrify

Typogrify prettifies your web typography by preventing ugly quotes and 'widows' and more

70381.7k18](/packages/nystudio107-craft-typogrify)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)

PHPackages © 2026

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