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

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

alphasnow/utils
===============

PHP utils package

0.0.1(3y ago)03MITPHPPHP &gt;=7.2

Since Jul 30Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (4)Used By (0)

AlphaSnow/Utils
===============

[](#alphasnowutils)

[![Latest Unstable Version](https://camo.githubusercontent.com/e6aac24d12d31584ac038aa4a26c69c0aa11776adccc080e2bb94aa077caec13/687474703a2f2f706f7365722e707567782e6f72672f616c706861736e6f772f7574696c732f762f756e737461626c65)](https://packagist.org/packages/alphasnow/utils)[![Latest Stable Version](https://camo.githubusercontent.com/56856e163f4fecff7f754a35c23a2c6920eb90f68bbd616fe10370c0eb0151e5/68747470733a2f2f706f7365722e707567782e6f72672f616c706861736e6f772f7574696c732f762f737461626c65)](https://packagist.org/packages/alphasnow/utils)[![Total Downloads](https://camo.githubusercontent.com/525ef94159a41cf7a6bf7f1aa7785683b58e6cc6c6026f17a2de19ffec2d15dc/68747470733a2f2f706f7365722e707567782e6f72672f616c706861736e6f772f7574696c732f646f776e6c6f616473)](https://packagist.org/packages/alphasnow/utils)[![Tests](https://github.com/alphasnow/php-utils/actions/workflows/tests.yml/badge.svg)](https://github.com/alphasnow/php-utils/actions/workflows/tests.yml)[![Coverage Status](https://camo.githubusercontent.com/df17766db37e2997c2138e06f95d0dd74d4beaa4fcb8daae1fb95f7309d8ba6f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616c706861736e6f772f7068702d7574696c732f62616467652e7376673f6272616e63683d302e78)](https://coveralls.io/repos/github/alphasnow/php-utils/badge.svg?branch=0.x)

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.2

Install
-------

[](#install)

```
composer require alphasnow/utils
```

Example
-------

[](#example)

```
use AlphaSnow\Utils\ListTree;
$list = [
    ['id' => 1, 'pid' => 0, 'name' => 'node1'],
    ['id' => 2, 'pid' => 1, 'name' => 'node2'],
    ['id' => 3, 'pid' => 2, 'name' => 'node3'],
];
$tree = ListTree::listToTree($list);
/*
[
    ['id' => 1, 'pid' => 0, 'name' => 'node1', '_child' => [
        ['id' => 2, 'pid' => 1, 'name' => 'node2', '_child' => [
            ['id' => 3, 'pid' => 2, 'name' => 'node3']
        ]]
    ]],
];
*/

$name = snake_name('ArticleCategory')
// article_category
```

Credits
-------

[](#credits)

- [AlphaSnow](https://github.com/alphasnow)

License
-------

[](#license)

MIT License. See the [LICENSE](LICENSE) file.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Total

2

Last Release

1051d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90877a466dd664c9a6b4ccd2a9ccf46e54427307198fa11201976aac968f5fca?d=identicon)[alphasnow](/maintainers/alphasnow)

---

Top Contributors

[![alphasnow](https://avatars.githubusercontent.com/u/8286647?v=4)](https://github.com/alphasnow "alphasnow (18 commits)")

---

Tags

phptool kitwork box

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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