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

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

sqonk/php-utils
===============

A minimal set of methods for strings and arrays. This library replaces php-strlib and to an extent phext-core, depending on your needs.

1.1(7mo ago)089↓33.3%MITPHPPHP ^8

Since Nov 21Pushed 5mo ago1 watchersCompare

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

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

Utility methods for PHP
=======================

[](#utility-methods-for-php)

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

A minimal library of global utility functions for working with strings, arrays and other basic data types. Currently only a handful of functions are present.

All are global with the function signatures formatted in the same theme as PHP's built-in functions.

Install
-------

[](#install)

Via Composer

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

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

34

—

LowBetter than 77% of packages

Maintenance68

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

214d 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

stringsarrays

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  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)[tamtamchik/namecase

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

78506.0k](/packages/tamtamchik-namecase)[delight-im/str

Convenient object-oriented operations on strings

68336.2k2](/packages/delight-im-str)[minwork/array

Pack of advanced array functions specifically tailored for: associative (assoc) array, multidimensional array, array of objects and handling nested array elements

66256.1k5](/packages/minwork-array)[sarhan/php-flatten

Flattens multidimensional arrays, traversables and vars into one dimensional array.

21177.7k1](/packages/sarhan-php-flatten)

PHPackages © 2026

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