PHPackages                             doefom/squeeze - 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. doefom/squeeze

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

doefom/squeeze
==============

Squeeze is a Statamic addon that provides a modifier named squeeze which removes a bunch of characters from a given string by replacing them with an empty string.

0.2.0(3y ago)215MITPHP

Since Feb 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/doefom/squeeze)[ Packagist](https://packagist.org/packages/doefom/squeeze)[ RSS](/packages/doefom-squeeze/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Squeeze
=======

[](#squeeze)

Squeeze is a Statamic addon that provides a modifier named `squeeze` which removes a bunch of characters from a given string by replacing them with an empty string.

Features
--------

[](#features)

This addon removes the following characters by default:

- `_`
- `-`
- `/`
- `:`
- ` ` (whitespace)

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require doefom/squeeze
```

How to Use
----------

[](#how-to-use)

In your `.yaml` files you probably have some kind of string variable like this:

```
text: "A_string-to/test:the squeeze"
```

Then you can use the modifier in your antlers views like this:

```
{{ text | squeeze }}

```

Which outputs:

```
Astringtotestthesqueeze

```

Options
-------

[](#options)

You may also pass your own squeezables to the modifier like so:

```
{{ text | squeeze:":-(" }}

```

### Important note

[](#important-note)

It's also possible to squeeze whitespaces but they cannot be the last character of the squeezables string:

```
{{ text | squeeze:"-_ :(" }} // This will work
{{ text | squeeze:" -_:(" }} // This will work
{{ text | squeeze:"-_:( " }} // This will not work

```

Also, if you want to squeeze backslashes you'll need to escape them:

```
{{ text | squeeze:"\\" }} // This squeezes a backslash

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% 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

1179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08c6d4c6c3af73d0ce3caab9b5531c4334eb97aee4e468c5db2fb8753290d884?d=identicon)[doefom](/maintainers/doefom)

---

Top Contributors

[![esdoefom](https://avatars.githubusercontent.com/u/138780078?v=4)](https://github.com/esdoefom "esdoefom (10 commits)")[![doefom](https://avatars.githubusercontent.com/u/33541715?v=4)](https://github.com/doefom "doefom (4 commits)")

### Embed Badge

![Health badge](/badges/doefom-squeeze/health.svg)

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

###  Alternatives

[abeautifulsite/jquery-minicolors

jQuery MiniColors Plugin

95678.0k1](/packages/abeautifulsite-jquery-minicolors)[campo/random-user-agent

Generate real random user-agents.

1451.2M25](/packages/campo-random-user-agent)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[parfaitementweb/filament-country-field

Country dropdown with ISO 3166 options values

19155.0k1](/packages/parfaitementweb-filament-country-field)[silverstripers/seo

SEO for SilverStripe websites

1144.3k](/packages/silverstripers-seo)[blumilksoftware/codestyle

Blumilk codestyle configurator

1328.9k9](/packages/blumilksoftware-codestyle)

PHPackages © 2026

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