PHPackages                             xiaoliuit/toolkit - 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. xiaoliuit/toolkit

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

xiaoliuit/toolkit
=================

A toolkit for convenient array operations in PHP

00PHP

Since Aug 3Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Array Toolkit
=============

[](#array-toolkit)

A simple PHP library for convenient array operations.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require GameTookit/array-toolkit

## Usage
```php
 'John', 'age' => 30, 'city' => 'New York'];

// Pluck specific keys
$result = ArrayToolkit::pluck($array, ['name', 'age']);
// Result: ['name' => 'John', 'age' => 30]

// Remove specific keys
$result = ArrayToolkit::except($array, ['age']);
// Result: ['name' => 'John', 'city' => 'New York']

// Flatten a multi-dimensional array
$nestedArray = [1, [2, 3], [4, [5, 6]]];
$result = ArrayToolkit::flatten($nestedArray);
// Result: [1, 2, 3, 4, 5, 6]

// Group an array of arrays by a specific key
$users = [
    ['name' => 'John', 'role' => 'admin'],
    ['name' => 'Jane', 'role' => 'user'],
    ['name' => 'Bob', 'role' => 'admin']
];
$result = ArrayToolkit::groupBy($users, 'role');
// Result: [
//     'admin' => [
//         ['name' => 'John', 'role' => 'admin'],
//         ['name' => 'Bob', 'role' => 'admin']
//     ],
//     'user' => [
//         ['name' => 'Jane', 'role' => 'user']
//     ]
// ]
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/51030ec42fb4194d11c1cd5ea73187976f7e7c6665e4f10380837210d8298de5?d=identicon)[xiaoliuit](/maintainers/xiaoliuit)

---

Top Contributors

[![xiaoliuit](https://avatars.githubusercontent.com/u/22652802?v=4)](https://github.com/xiaoliuit "xiaoliuit (2 commits)")

### Embed Badge

![Health badge](/badges/xiaoliuit-toolkit/health.svg)

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

###  Alternatives

[funiq/geophp

Open-source native PHP library for doing geometry operations. Can read and write a wide variety of formats: (E)WKT, (E)WKB, TWKB, GeoJSON, KML, GPX, GeoRSS. Works with all Simple-Feature geometries (Point, LineString, Polygon...) and can be used to get centroids, bounding-boxes, area, etc.

21114.4k1](/packages/funiq-geophp)[moell/rss

moell/rss is a package that follows the RSS 2.0 standard

111.8k1](/packages/moell-rss)

PHPackages © 2026

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