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

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

hyqo/string
===========

Fluent-style string operations

1.0.0(3y ago)058↓100%2MITPHPPHP ^8.2

Since Feb 21Pushed 3y ago1 watchersCompare

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

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

String
======

[](#string)

[![Packagist Version](https://camo.githubusercontent.com/bcd1a92fe5a0418dc3f16a1b65323c68b6850a77b0780258512bb4201470cdb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6879716f2f737472696e673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/bcd1a92fe5a0418dc3f16a1b65323c68b6850a77b0780258512bb4201470cdb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6879716f2f737472696e673f7374796c653d666c61742d737175617265)[![Packagist PHP Version Support](https://camo.githubusercontent.com/4286ce56d7bf980317149dc4aeb29fb84abdf857edb200a1e8d245a884570cb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6879716f2f737472696e673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/4286ce56d7bf980317149dc4aeb29fb84abdf857edb200a1e8d245a884570cb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6879716f2f737472696e673f7374796c653d666c61742d737175617265)[![GitHub Workflow Status](https://camo.githubusercontent.com/dec4f1955ccd0404121dc1739fcafa1f793d2096a861ca448a63ad5613235a15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6879716f2f737472696e672f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/dec4f1955ccd0404121dc1739fcafa1f793d2096a861ca448a63ad5613235a15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6879716f2f737472696e672f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)

Fluent-style string operations

Install
-------

[](#install)

```
composer require hyqo/string
```

Usage
-----

[](#usage)

```
use function Hyqo\String\s;

echo s('FOO BAR')->lower()->upperFirst(); //Foo bar
```

Other functions:

```
use function Hyqo\String\s;
use Hyqo\String\SplitFlag;

s('foo#bar')->leftCrop('#'); //bar
s('foo#bar')->rightCrop('#'); //foo

s('foo, , bar')->split(','); // ['foo', ' ', ' bar']
s('foo, , bar')->split(',', SplitFlag::TRIM | SplitFlag::NO_EMPTY); // ['foo', 'bar']
s('foo, , bar')->splitStrictly(','); // ['foo', 'bar']
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

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

Unknown

Total

1

Last Release

1172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4230413a88525a7581fb391836718bcca27b8d1698f97b61de0dd6d816fac41?d=identicon)[akeylimepie](/maintainers/akeylimepie)

---

Top Contributors

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

---

Tags

stringcamel casesnake casepascal case

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation.

1746.9M79](/packages/jawira-case-converter)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M190](/packages/danielstjules-stringy)[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)[opis/string

Multibyte strings as objects

7120.9M7](/packages/opis-string)

PHPackages © 2026

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