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

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

misantron/php-utils
===================

A collection of PHP utility classes.

2.0.0(11y ago)112MITPHPPHP &gt;=5.4

Since Feb 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/misantron/php-utils)[ Packagist](https://packagist.org/packages/misantron/php-utils)[ Docs](https://github.com/misantron/php-utils)[ RSS](/packages/misantron-php-utils/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

PHP utils
=========

[](#php-utils)

[![Build Status](https://camo.githubusercontent.com/68823fd5d233bb3f0fa5db117bc95ecff11f7192ac16aac54d2621795c8f8eac/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6d6973616e74726f6e2f7068702d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/misantron/php-utils)[![Code Coverage](https://camo.githubusercontent.com/f7c0ed52dfc1f1a05fb5de9bcadb057ed1ed7f8fdb94306b35d0e5491a2d9b74/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6d6973616e74726f6e2f7068702d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/misantron/php-utils)[![Code Climate](https://camo.githubusercontent.com/aa6ff2959a1a839d1825c334017d698adf9f0ec52ffc8328ad7348d24e6acd36/687474703a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f6d6973616e74726f6e2f7068702d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/misantron/php-utils)[![Latest Release](https://camo.githubusercontent.com/0ea62a58bd2ea89b8d6b3921aac5c94dcbf657be517d8b14eccf100e1ba48c82/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6973616e74726f6e2f7068702d7574696c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/misantron/php-utils)

Features
--------

[](#features)

- Contains Array, String and Time helper utilities.
- Base encoding - UTF-8
- PSR-4 auto loading standard compatible.

Server requirements
-------------------

[](#server-requirements)

- PHP version &gt;= 5.4.
- MBString PHP extension.
- OpenSSL PHP extension.

External dependencies
---------------------

[](#external-dependencies)

- [Slugify](https://github.com/cocur/slugify) library

Installing
----------

[](#installing)

The preferred way to install is through [Composer](https://getcomposer.org). Run this command to install the latest stable version:

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

or add

```
"misantron/php-utils": "dev-master"
```

to the require section of your composer.json.

Basic usage examples
--------------------

[](#basic-usage-examples)

```
use Utility\UArray;
use Utility\UString;
use Utility\UTime;

$array = [
    ['name' => 'Alex', 'age' => 25],
    ['name' => 'Sara', 'age' => 21],
    ['name' => 'John', 'age' => 28]
];
$string = '..C’est du français !';
$date1 = new \DateTime('2015-02-26 13:05');
$date2 = new \DateTime('2015-02-26 22:16');

$result1 = UArray::extractColumn($array, 'age');
$result2 = UString::slug($string);
$result3 = UTime::secondsDiff($date1, $date2);

var_dump($result1, $result2, $result3);

[25, 21, 28];
'c-est-du-francais';
33060;
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Total

6

Last Release

4027d ago

Major Versions

v0.9.0 → 1.0.02015-03-02

1.2.0 → 2.0.02015-06-24

PHP version history (2 changes)v0.9.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9839955?v=4)[Aleksandr Ivanov](/maintainers/misantron)[@misantron](https://github.com/misantron)

---

Top Contributors

[![misantron](https://avatars.githubusercontent.com/u/9839955?v=4)](https://github.com/misantron "misantron (71 commits)")

---

Tags

phparraystringdatetimeutilities

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  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.1k430.4M1.7k](/packages/nette-utils)[clausnz/php-helpers

A Collection of useful php helper functions.

3810.4k](/packages/clausnz-php-helpers)[jasonlam604/stringizer

Stringizer is a PHP string manipulation library with support for method chaining and multibyte handling

35110.5k1](/packages/jasonlam604-stringizer)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2519.3k](/packages/iteks-laravel-enum)

PHPackages © 2026

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