PHPackages                             andydune/string-container - 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. andydune/string-container

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

andydune/string-container
=========================

Collection of functions fo string modification. Collection is composed as strategy pattern with simple extension.

v1.0.1(6y ago)08MITPHPPHP &gt;=5.6

Since Jun 21Pushed 5y agoCompare

[ Source](https://github.com/AndyDune/StringContainer)[ Packagist](https://packagist.org/packages/andydune/string-container)[ Docs](https://github.com/AndyDune/StringContainer)[ RSS](/packages/andydune-string-container/feed)WikiDiscussions master Synced 4d ago

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

StringContainer
===============

[](#stringcontainer)

[![Build Status](https://camo.githubusercontent.com/5ffbde6e4b1446583826345b138b186e4b617d3ee4723a8f2df8117d362b2a0d/68747470733a2f2f7472617669732d63692e6f72672f416e647944756e652f537472696e67436f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AndyDune/StringContainer)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/9a1bf764bb0b81fdc4bbd2bd1e4e8a218253d687633f64a31164fe7ee3f6af54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e647964756e652f737472696e672d636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andydune/string-container)[![Total Downloads](https://camo.githubusercontent.com/2a327053fbdc410b68d0ec73207d0d0a5574fedc1575b864fa37a21476feebd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647964756e652f737472696e672d636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andydune/string-container)

It is collection of functions for string modification. Collection is composed as strategy pattern with simple extension.

Actions with string
-------------------

[](#actions-with-string)

### Remove duplicate space symbols

[](#remove-duplicate-space-symbols)

It replaces spaces, tabs and so on for regular `\s` with only one space symbol.

```
use AndyDune\StringContainer\StringContainer;

$container = new StringContainer('Very
cool.');
'Very cool' == $container->removeDuplicateSpaces()->getString();
```

### Remove duplicate words

[](#remove-duplicate-words)

It replaces words, if there are more then one in a string.

```
use AndyDune\StringContainer\StringContainer;

$container = new StringContainer('Very very cool cooly.');
'Very  cool cooly.' == $container->removeDuplicateWords()->getString();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

2520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79da3b2173a2cefb36abc9b4707cf2c633df8f2c748633ccf64186f5c0e7be6c?d=identicon)[AndyDune](/maintainers/AndyDune)

---

Tags

phpstring

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/andydune-string-container/health.svg)

```
[![Health](https://phpackages.com/badges/andydune-string-container/health.svg)](https://phpackages.com/packages/andydune-string-container)
```

###  Alternatives

[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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