PHPackages                             webikevn/wstring - 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. webikevn/wstring

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

webikevn/wstring
================

PHP String Utilities

1.0.2(5y ago)113MITPHP

Since Aug 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/webikevn/wstring)[ Packagist](https://packagist.org/packages/webikevn/wstring)[ RSS](/packages/webikevn-wstring/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

webikevn/wstring
----------------

[](#webikevnwstring)

This librairy provides utilities function to ease string manipulation

Install
-------

[](#install)

Install package with composer

```
composer require webikevn/wstring

```

In your PHP code, load library

```
require_once __DIR__ . '/../vendor/autoload.php';
use Webike\WString\WString as WString;
```

Note: I couldn't use String as namespace because it's a PHP reserved word so it's why namespace is WString ...

Usage
-----

[](#usage)

Replace the last occurrence of a string

```
$string = WString::strReplaceLast($search, $replace, $subject);
```

Checks whether a string starts with given chars

```
$bool = WString::startsWith($haystack, $needle);
```

Checks whether a string ends with given chars

```
$bool = WString::endsWith($haystack, $needle);
```

Unit Tests
----------

[](#unit-tests)

```
phpunit --bootstrap vendor/autoload.php tests

```

Author
------

[](#author)

Nguyen Giang [visit my website ;)](https://www.linkedin.com/in/nguyentruonggiang91/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Total

3

Last Release

2095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09f7d0bae763e995aa8b55c06da4a631819fc5e7acf10f1aa4a17e1ea8ab0fd8?d=identicon)[giangbeoit](/maintainers/giangbeoit)

---

Top Contributors

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

---

Tags

laravellaravel-string

### Embed Badge

![Health badge](/badges/webikevn-wstring/health.svg)

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

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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