PHPackages                             vvasystem/arraytools - 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. vvasystem/arraytools

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

vvasystem/arraytools
====================

Some tools for PHP array

1.0.1(10y ago)016MITPHPPHP &gt;=5.4.0

Since Apr 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/vvasystem/arraytools)[ Packagist](https://packagist.org/packages/vvasystem/arraytools)[ Docs](https://github.com/vvasystem/arraytools)[ RSS](/packages/vvasystem-arraytools/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Array Tools
===========

[](#array-tools)

Some tools for PHP array.

Install
-------

[](#install)

```
composer require vvasystem/arraytools

```

How to use?
-----------

[](#how-to-use)

```
//...
require __DIR__ . '/vendor/autoload.php';

$groupData = \Assistance\ArrayTools\ArrayTools::group(
	[
		[
			'name' => 'name1',
			'sum' => 12,
		],
			[
			'name' => 'name2',
			'sum' => 20,
		],
			[
			'name' => 'name1',
			'sum' => 15,
		]
	],
	['name'],
	['sum']
);

var_dump($groupData);
/*
array(2) {
  [0]=>
  array(2) {
    ["name"]=>
    string(5) "name1"
    ["sum"]=>
    int(27)
  }
  [1]=>
  array(2) {
    ["name"]=>
    string(5) "name2"
    ["sum"]=>
    int(20)
  }
}
*/

//------------------------------------------------------

$searchData = \Assistance\ArrayTools\ArrayTools::search(
	[
		[
			'name' => 'name2',
			'type' => 'type2',
			'sum' => 19,
		],
				[
			'name' => 'name1',
			'type' => 'type1',
			'sum' => 12,
		],
		[
			'name' => 'name3',
			'type' => 'type3',
			'sum' => 33,
		],

	],
	[
		'name' => 'name1',
		'type' => 'type1',
	]
);

var_dump($searchData);
/*
array(1) {
  [1]=>
  array(3) {
    ["name"]=>
    string(5) "name1"
    ["type"]=>
    string(5) "type1"
    ["sum"]=>
    int(12)
  }
}
*/

//------------------------------------------------------

$pluckData = \Assistance\ArrayTools\ArrayTools::pluck(
	[
		[
			'name' => 'name2',
			'type' => 'type2',
			'sum' => 19,
		],
				[
			'name' => 'name1',
			'type' => 'type1',
			'sum' => 12,
		],
		[
			'name' => 'name3',
			'type' => 'type3',
			'sum' => 33,
		],

	],
	'type'
);

var_dump($pluckData);
/*
array(3) {
  [0]=>
  string(5) "type2"
  [1]=>
  string(5) "type1"
  [2]=>
  string(5) "type3"
}
*/
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83a1dea8a3cf3e3453430ad9e43fc02b5fbbc0b8c22f04b82b29980b7e5bcb3a?d=identicon)[vvasystem](/maintainers/vvasystem)

---

Top Contributors

[![vvasystem](https://avatars.githubusercontent.com/u/3647630?v=4)](https://github.com/vvasystem "vvasystem (10 commits)")

---

Tags

arrayarray tools

### Embed Badge

![Health badge](/badges/vvasystem-arraytools/health.svg)

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

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[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.1k394.3M1.5k](/packages/nette-utils)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)[aimeos/map

Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections

4.2k412.9k11](/packages/aimeos-map)

PHPackages © 2026

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