PHPackages                             sqonk/php-strlib - 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. sqonk/php-strlib

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

sqonk/php-strlib
================

A string library with no dependancies containing a very small set of useful functions in the global name space.

1.1(2y ago)08MITPHPPHP ^8

Since Nov 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sqonk/php-strlib)[ Packagist](https://packagist.org/packages/sqonk/php-strlib)[ RSS](/packages/sqonk-php-strlib/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Str lib for PHP
===============

[](#str-lib-for-php)

[![Minimum PHP Version](https://camo.githubusercontent.com/a059fb88d3ff5fe22ed8bf35e3309c8ce74b414e8efe9cf66b7cc7a111ae78b9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382d79656c6c6f77)](https://php.net/)[![License](https://camo.githubusercontent.com/e3d584625d5a65f768ca34cf2e2486fe3578f7f9f7f6c1c07548809f8ca8c0f2/68747470733a2f2f73716f6e6b2e636f6d2f6f70656e736f757263652f6c6963656e73652e737667)](license.txt)

A string library with no dependancies containing a very small set of useful functions in the global name space. If you don't want to work with classes or namespaces then this library currently provides a small set of simple but useful string functions with the naming convention akin to the standard PHP library.

Install
-------

[](#install)

Via Composer

```
$ composer require sqonk/php-strlib
```

API Reference
-------------

[](#api-reference)

[Available here](docs/api/strings.md).

Credits
-------

[](#credits)

Theo Howell

License
-------

[](#license)

The MIT License (MIT). Please see [License File](license.txt) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

1031d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

stringssplit

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sqonk-php-strlib/health.svg)

```
[![Health](https://phpackages.com/badges/sqonk-php-strlib/health.svg)](https://phpackages.com/packages/sqonk-php-strlib)
```

###  Alternatives

[doctrine/inflector

PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.

11.4k855.8M711](/packages/doctrine-inflector)[snipe/banbuilder

Library to easily handle profanity filtering in PHP projects.

3371.5M3](/packages/snipe-banbuilder)[vanderlee/php-sentence

Simple text sentence splitting and counting. Supports at least english, german and dutch, possibly more.

84555.7k6](/packages/vanderlee-php-sentence)[tamtamchik/namecase

This package allows you to convert names into the correct case where possible.

78506.0k](/packages/tamtamchik-namecase)[jakezatecky/array_group_by

A function that groups/splits an array by the values of a given key or keys.

100188.7k2](/packages/jakezatecky-array-group-by)[delight-im/str

Convenient object-oriented operations on strings

68336.2k2](/packages/delight-im-str)

PHPackages © 2026

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