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 2w ago

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 47% 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

3079d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/234166?v=4)[Pete Heaney](/maintainers/peteheaney)[@peteheaney](https://github.com/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/formie

The most user-friendly forms plugin for Craft.

100387.6k59](/packages/verbb-formie)[nystudio107/craft-typogrify

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

70384.8k18](/packages/nystudio107-craft-typogrify)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M52](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/field-manager

Manage your fields and field groups with ease.

195612.2k10](/packages/verbb-field-manager)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)

PHPackages © 2026

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