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

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

x-adam/string
=============

PHP string helper package.

v2.0.0(5y ago)04161MITPHPPHP &gt;=7.0

Since Dec 19Pushed 5y agoCompare

[ Source](https://github.com/X-Adam/php-string)[ Packagist](https://packagist.org/packages/x-adam/string)[ RSS](/packages/x-adam-string/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (2)DependenciesVersions (7)Used By (1)

String
======

[](#string)

[![Latest Stable Version](https://camo.githubusercontent.com/a175833a3b9935dfcff7c8ca3cecb09f144591feee1d0e7076e2c013679c3d8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f582d4164616d2f737472696e67)](https://packagist.org/packages/X-Adam/string)[![Total Downloads](https://camo.githubusercontent.com/630161131f2a76ebde5b79d0a0b01c55e1868aa1bfa3d91829a3c2e07d10c0f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f582d4164616d2f737472696e67)](https://packagist.org/packages/X-Adam/string)[![Dependents](https://camo.githubusercontent.com/4e3a00945e7b07646dc79a3bbfeb8f21e18a5d61477b6e607c17da049706a83e/68747470733a2f2f706f7365722e707567782e6f72672f582d4164616d2f737472696e672f646570656e64656e74732e737667)](https://packagist.org/packages/X-Adam/string)[![License](https://camo.githubusercontent.com/1d41181b6d5e6c0f1637765bb5d1202660c55100aab8fd85bcd9b6d9e43d2469/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f582d4164616d2f737472696e67)](https://packagist.org/packages/X-Adam/string)

[![](https://camo.githubusercontent.com/83d79f5e05d891c75802ca23f20540a6ec5deefd0132451ae0710ada16a37650/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f582d4164616d2f737472696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 "Scrutinizer Code Quality")](https://scrutinizer-ci.com/g/X-Adam/php-string/build-status/master)[![StyleCI](https://camo.githubusercontent.com/d3b56cfcb078f175be4b5976e15a167da0f65c786e1e435407dc6cd0f080885a/68747470733a2f2f7374796c6563692e696f2f7265706f732f3332323837303236332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/322870263)

Introduction
------------

[](#introduction)

PHP string helper package.

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

[](#requirements)

PHP &gt;=7.0. Other than that, this library has no requirements.

Install
-------

[](#install)

```
$ composer require x-adam/string:"~2.0"
```

Example Usage
-------------

[](#example-usage)

```
include "./vendor/autoload.php";

# Make a string's multiple space characters clear.
echo strMultipleSpaceClear('a b  c   d     e');
# Result: 'a b c d e'.
```

License
-------

[](#license)

This package is open source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

4

Last Release

1976d ago

Major Versions

v1.0.0 → 2.x-dev2020-12-19

PHP version history (2 changes)1.x-devPHP &gt;=5.0

2.x-devPHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bdb64c6c087c331b8bd5906bb1aa7eb06bc83af3654a48ba8ab9da365976651?d=identicon)[X-Adam](/maintainers/X-Adam)

---

Top Contributors

[![X-Adam](https://avatars.githubusercontent.com/u/60411758?v=4)](https://github.com/X-Adam "X-Adam (3 commits)")

### Embed Badge

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

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

###  Alternatives

[mokhosh/filament-kanban

Add kanban boards to your Filament pages

453180.4k1](/packages/mokhosh-filament-kanban)[meetanshi/magento-2-defer-parsing-javascript

Magento 2 DeferJS

114.0k](/packages/meetanshi-magento-2-defer-parsing-javascript)

PHPackages © 2026

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