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

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

abdellahramadan/string
======================

This is a lightweight string manipulation library for PHP

v1.0.1(4y ago)023MITPHPPHP &gt;= 8.0

Since Nov 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/abdellahramadan/string)[ Packagist](https://packagist.org/packages/abdellahramadan/string)[ RSS](/packages/abdellahramadan-string/feed)WikiDiscussions main Synced 1w ago

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

### This is a simple and lightweight String manipulation library

[](#this-is-a-simple-and-lightweight-string-manipulation-library)

***It is a work in progress and features will be added often***

install with composer:

```
composer require abdellahramadan/string

```

```
use AbdellahRamadan\String\Strings;

```

**Slug a text**

```
$text = Strings::slug("this is a simple slug");

echo $text; // this-is-a-simple-slug

```

**Make a text lowercase**

```
$text = Strings::lowercase("I will be MADE A LOWERCASE");

echo $text; // i will be made a lowercase

```

**Search a word**

```
$sentence = "I want to find a word";

Strings::contains($sentence, "find"); // true

```

**Add a prefix**

```
$text = "is a cool language";

echo $completeText = Strings::prefix($text, "PHP"); // PHP is a cool language

```

And much more...

### More string manipulations is being Added

[](#more-string-manipulations-is-being-added)

### Testing

[](#testing)

Test is available in the test folder and can be run with:

```
vendor/bin/phpunit

```

### Contributing

[](#contributing)

Contributions are welcome 😃

### Licence

[](#licence)

---

MIT Licence

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

1643d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d6da32e287615c39411860f6a16d1805a9fca063de0dc38835eaaed7177e864?d=identicon)[Abdellah](/maintainers/Abdellah)

---

Top Contributors

[![abdellahrk](https://avatars.githubusercontent.com/u/17084652?v=4)](https://github.com/abdellahrk "abdellahrk (60 commits)")

---

Tags

slugutf-8stringutilitytext

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/abdellahramadan-string/health.svg)](https://phpackages.com/packages/abdellahramadan-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)[opis/string

Multibyte strings as objects

7120.9M7](/packages/opis-string)[danielstjules/sliceable-stringy

Python string slices in PHP

4751.6k1](/packages/danielstjules-sliceable-stringy)

PHPackages © 2026

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