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

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

cjrasmussen/string
==================

Simple functions for string manipulation and analysis

2.0.1(1y ago)02952MITPHPPHP &gt;=7.4.0

Since Sep 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cjrasmussen/String)[ Packagist](https://packagist.org/packages/cjrasmussen/string)[ Docs](https://cjr.dev)[ RSS](/packages/cjrasmussen-string/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (14)Used By (2)

String
======

[](#string)

Simple functions for string manipulation and analysis.

Usage
-----

[](#usage)

```
use cjrasmussen\String\Check;
use cjrasmussen\String\Convert;
use cjrasmussen\String\Parse;

$string = Parse::filterChars('I have 5 apples', Parse::FILTER_NUM);
echo $string; // 5

$json = Check::isJson('This is not JSON');
echo $json; // false

echo Convert::booleanToYesNo(false); // No
echo Convert::booleanToYesNo(true); // Yes
```

Installation
------------

[](#installation)

Simply add a dependency on cjrasmussen/string to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require cjrasmussen/string
```

Although it's recommended to use Composer, you can actually include the file(s) any way you want.

License
-------

[](#license)

String is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance45

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~151 days

Total

13

Last Release

424d ago

Major Versions

1.2.6 → 2.0.02025-03-19

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

1.2.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0225f44837a665c8a143afa50a34a406a769c523dba31e4cdf73fd0530dede45?d=identicon)[cjrasmussen](/maintainers/cjrasmussen)

---

Top Contributors

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

---

Tags

string

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

String handling evolved

5604.6M24](/packages/spatie-string)[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)

PHPackages © 2026

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