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

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

keiwen/utils
============

Common utils functions

2.17(1y ago)1852PHPPHP &gt;=7.1

Since Apr 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Keiwen/Utils)[ Packagist](https://packagist.org/packages/keiwen/utils)[ RSS](/packages/keiwen-utils/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)DependenciesVersions (23)Used By (2)

Utils
=====

[](#utils)

A bench of utils functions.

All classes here should be designed to be extendable the most as possible.

*Full doc is planned like hemmmm you know... Later... Sorry!*

Analyser and Mutator
--------------------

[](#analyser-and-mutator)

- Check if array is sequential (numerical keys ordered)
- Check if array has homogeneous elements in it (with inheritance support)
- Flatten array (nested field brought up to first level, concatenating keys)
- Sort array by (sub)field
- Get classes and subdir from namespace

JsonObject
----------

[](#jsonobject)

- Generate objects from json, with each json field converted to attribute
- JsonObject could include another one (or a list).
- JsonObject could be generated from a parent with additional Json data.
- Functions to sort or search in a list of objects.

SimpleCurl
----------

[](#simplecurl)

- Generate simple curl request, with configurable headers, cookies, curl options

HtmlParsing
-----------

[](#htmlparsing)

- Isolate target HTML non-empty element by id or class (if only this class for this element)
- Retrieve list of similar first child tags from HTML source (typically all `` from ``)
- Get tag content if not nesting a similar tag.
- Get attribute from isolated html tag

UnitConverter
-------------

[](#unitconverter)

- Convert some data from a unit to another (typically from fahrenheit degree to celsius degree, using kelvin International System unit)

StringSanitizer
---------------

[](#stringsanitizer)

- Filter incoming string

Grid
----

[](#grid)

- Defines a frame to build a grid composed of box. Moving from a box in some direction will get the neighbor box.
- Includes tetragon (rectangular) format, with diagonal option
- Includes hexagon format, vertical or horizontal

ELO
---

[](#elo)

- Setup ELO system and configuration
- Manage duels
- Extends to multiplayer: races and brawls

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

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

Recently: every ~77 days

Total

22

Last Release

535d ago

Major Versions

1.4 → 2.02022-10-05

PHP version history (2 changes)1.1PHP &gt;=7.0

2.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![Keiwen](https://avatars.githubusercontent.com/u/20301099?v=4)](https://github.com/Keiwen "Keiwen (331 commits)")

### Embed Badge

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

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

###  Alternatives

[bvipul/generator

To create a whole module with all related files like model, controller, repository, routes, views etc with a simple GUI.

2030.5k](/packages/bvipul-generator)

PHPackages © 2026

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