PHPackages                             traderinteractive/util-string - 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. traderinteractive/util-string

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

traderinteractive/util-string
=============================

Utility classes to work with PHP strings

v4.0.0(3y ago)2104.5k↓27.9%22MITPHPPHP ^7.3 || ^8.0

Since Oct 4Pushed 3y ago8 watchersCompare

[ Source](https://github.com/traderinteractive/util-string-php)[ Packagist](https://packagist.org/packages/traderinteractive/util-string)[ RSS](/packages/traderinteractive-util-string/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (2)

util-string-php
===============

[](#util-string-php)

[![Build Status](https://camo.githubusercontent.com/1d43c355eb9dc05bc5f9414c4865e57182d99a171ff459581415f7dd8d78f153/68747470733a2f2f7472617669732d63692e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/traderinteractive/util-string-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fafe53b71a382b79bf6aebf02ac893bcc1174c1484830b72dac98df9d9a31923/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747261646572696e7465726163746976652f7574696c2d737472696e672d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/traderinteractive/util-string-php/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/a8344718b474e3002a09f2f7ec3ae49f79205de8ceafa1b9ca049be7f3f7f165/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f747261646572696e7465726163746976652f7574696c2d737472696e672d7068702f62616467652e737667)](https://coveralls.io/github/traderinteractive/util-string-php)

[![Latest Stable Version](https://camo.githubusercontent.com/75d7a23b96952d659b21cff2118bda7243073cf753532bdf152cc0921ee4f15b/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672f762f737461626c65)](https://packagist.org/packages/traderinteractive/util-string)[![Latest Unstable Version](https://camo.githubusercontent.com/e2bed564c5728097e2c047c99ccc4fd820adb03fb4dc961e1383e979316418f9/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672f762f756e737461626c65)](https://packagist.org/packages/traderinteractive/util-string)[![License](https://camo.githubusercontent.com/71dbdb7a890f5cdca46a0eaa4231a2975ac4d7ef15375b38988b5396eb39fdcf/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672f6c6963656e7365)](https://packagist.org/packages/traderinteractive/util-string)

[![Total Downloads](https://camo.githubusercontent.com/5dc6382b60e7e469022a23355b8fdfb31703fb21adb49834d07735e5126d1428/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672f646f776e6c6f616473)](https://packagist.org/packages/traderinteractive/util-string)[![Daily Downloads](https://camo.githubusercontent.com/54c50df026c48a350253863de1c18900339bc160c0e6e6ab6ff0639f90d98d80/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672f642f6461696c79)](https://packagist.org/packages/traderinteractive/util-string)[![Monthly Downloads](https://camo.githubusercontent.com/9f7a1e71054c67dc132fae1660845ad6c0d7a2d988ff780eecd7b55bb3554a43/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f7574696c2d737472696e672f642f6d6f6e74686c79)](https://packagist.org/packages/traderinteractive/util-string)

A collection of string utilities.

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

[](#requirements)

util-string-php requires PHP 7.0 (or later).

Composer
--------

[](#composer)

To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `traderinteractive/util-string` to your project's `composer.json` file such as:

```
{
    "require": {
        "traderinteractive/util-string": "^3.0"
    }
}
```

Documentation
-------------

[](#documentation)

Found in the [source](src) itself, take a look!

Contact
-------

[](#contact)

Developers may be contacted at:

- [Pull Requests](https://github.com/traderinteractive/util-string-php/pulls)
- [Issues](https://github.com/traderinteractive/util-string-php/issues)

Project Build
-------------

[](#project-build)

With a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:

```
./vendor/bin/phpunit
./vendor/bin/phpcs
```

There is also a [docker](http://www.docker.com/)-based [fig](http://www.fig.sh/) configuration that will execute the build inside a docker container. This is an easy way to build the application:

```
fig run build
```

Contributing
------------

[](#contributing)

For more information on our build process, read through out our [Contribution Guidelines](/.github/CONTRIBUTING.md).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

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

Every ~847 days

Total

4

Last Release

1336d ago

Major Versions

v1.8.2 → v2.0.02016-05-24

v2.0.0 → v3.0.02018-02-22

v3.0.0 → v4.0.02022-09-20

PHP version history (4 changes)v1.8.2PHP ~5.4

v2.0.0PHP ~5.6 || ~7.0

v3.0.0PHP ^7.0

v4.0.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29952359?v=4)[Trader Interactive](/maintainers/traderinteractive)[@traderinteractive](https://github.com/traderinteractive)

---

Top Contributors

[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (31 commits)")[![chrisryan](https://avatars.githubusercontent.com/u/704326?v=4)](https://github.com/chrisryan "chrisryan (6 commits)")

---

Tags

stringutility

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/traderinteractive-util-string/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[statamic/stringy

A string manipulation library with multibyte support, forked from @statamic

234.5M14](/packages/statamic-stringy)[danielstjules/sliceable-stringy

Python string slices in PHP

4751.6k1](/packages/danielstjules-sliceable-stringy)[tcb13/substringy

A sub string manipulation library with multibyte support that extends Stringy

1760.6k1](/packages/tcb13-substringy)

PHPackages © 2026

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