PHPackages                             nabeghe/stringer - 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. nabeghe/stringer

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

nabeghe/stringer
================

A string helper for PHP. It includes some useful methods and possibly other features.

v1.1.4(6mo ago)3141MITPHPPHP &gt;=7.4

Since Oct 16Pushed 6mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (8)Used By (1)

Stringer (String Helper for PHP ≥ 7.4)
======================================

[](#stringer-string-helper-for-php--74)

> A string helper for PHP. It includes some useful methods and possibly other features.

Some of the methods from the Str class of the Laravel framework are also included in this library; however, some of them have been modified.

🫡 Usage
-------

[](#-usage)

### 🚀 Installation

[](#-installation)

You can install the package via composer:

```
composer require nabeghe/stringer
```

### Str Class

[](#str-class)

The main class that includes the useful methods is `Nabegh\String\Str`.

#### Example:

[](#example)

```
use Nabeghe\Stringer\Str;

echo Str::random(32);
echo Str::random(32, '0123456789');
```

### UnicodeControls Class

[](#unicodecontrols-class)

A class that includes some Unicode control characters; for example, the invisible character, or the right-to-left and left-to-right markers.

```
use Nabeghe\Stringer\UnicodeControls;

echo UnicodeControls::ISS; // Invisible
```

### Stringer Class

[](#stringer-class)

A string class.

Accepts any value, converts it to a string via strval, stores it, and returns it via \_\_toString.

It is possible to access the methods of the `Str` class through the `Stringer` object as well, with the difference that the main text parameter is no longer present.

```
use Nabeghe\Stringer\Stringer;

$string = new Stringer('In programming, a string is a sequence of characters, and string manipulation processes these characters.');
echo $string->after('string ')->before(','); // `is a sequence of characters`
```

📖 License
---------

[](#-license)

Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance67

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Every ~64 days

Recently: every ~96 days

Total

7

Last Release

192d ago

### Community

Maintainers

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

---

Top Contributors

[![nabeghe](https://avatars.githubusercontent.com/u/12207627?v=4)](https://github.com/nabeghe "nabeghe (9 commits)")

---

Tags

phpstringstring-helperstringstexttexthelperhelperstringlibrarytextsupporttext analysisstring-helperstring support

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nabeghe-stringer/health.svg)

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

###  Alternatives

[lolli42/finediff

PHP implementation of a Fine granularity Diff engine

138.8M3](/packages/lolli42-finediff)[clausnz/php-helpers

A Collection of useful php helper functions.

388.7k](/packages/clausnz-php-helpers)

PHPackages © 2026

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