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

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

zendraxl/laravel-string
=======================

Laravel String Object inspired by Laravel Collections

2.0.4(6y ago)255MITPHPPHP &gt;=7.1.0CI failing

Since Oct 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zendraxl/laravel-string)[ Packagist](https://packagist.org/packages/zendraxl/laravel-string)[ RSS](/packages/zendraxl-laravel-string/feed)WikiDiscussions master Synced 2w ago

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

Right now if we want to do any manipulation with strings we face same problem like with an array before collections where we have to read the code inside out.

```
$title = Str::title(Str::replaceArray('_', [' '], Str::snake('fooBar')));
```

Also Str object in Laravel does not accept the string that is being manipulated as the first argument across all methods like `replaceArray()`.

It would be great to bring that kind of power and functionality to Laravel and surpass current language limitations.

```
$title = (new Str('fooBar'))->snake()->replaceArray('_', [' '])->title()->get();
```

Also add helper function to make it even cleaner.

```
$title = str('fooBar')->snake()->replaceArray('_', [' '])->title()->get();
```

Having `dd()` on that object is a must :D

```
$title = str('fooBar')->snake()->replaceArray('_', [' '])->dd()->title()->get();
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

Total

6

Last Release

2434d ago

Major Versions

1.0.1 → 2.0.02019-10-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44451816?v=4)[Drazen Vasiljevic](/maintainers/zendraxl)[@zendraxl](https://github.com/zendraxl)

---

Top Contributors

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

---

Tags

laravelstring

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M282](/packages/laravel-horizon)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.2M17](/packages/directorytree-ldaprecord-laravel)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[pishran/laravel-persian-string

Convert Arabic/English/etc numbers and characters to Persian numbers and characters in Laravel models.

206.8k](/packages/pishran-laravel-persian-string)

PHPackages © 2026

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