PHPackages                             gorogoroyasu/arylr - 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. gorogoroyasu/arylr

ActiveLibrary

gorogoroyasu/arylr
==================

Array Converter

0.16(6y ago)01.6k↓100%[1 issues](https://github.com/gorogoroyasu/aryrl/issues)[1 PRs](https://github.com/gorogoroyasu/aryrl/pulls)MITPHPPHP &gt;=7.0CI failing

Since Oct 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gorogoroyasu/aryrl)[ Packagist](https://packagist.org/packages/gorogoroyasu/arylr)[ RSS](/packages/gorogoroyasu-arylr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (10)Used By (0)

Aryrl
=====

[](#aryrl)

PHP Array Regularizer
[![CircleCI](https://camo.githubusercontent.com/939ba09b41bb9af1db85a3256a3e44597601cc515a32597bb74278e453e947aa/68747470733a2f2f636972636c6563692e636f6d2f67682f676f726f676f726f796173752f617279726c2e7376673f7374796c653d737667)](https://circleci.com/gh/gorogoroyasu/aryrl)

Usage
=====

[](#usage)

There are more samples in [tests/StoreTest.php](https://github.com/gorogoroyasu/aryrl/blob/master/tests/StoreTest.php)

```
use Aryrl/Store;

$array = [
        [1, 2],
        [4, 5, 6],
        [7, 8, 9]
];
$options = [
    'row' => 'max',  # or int >= 1
    'col' => 'max',  # or int >= 1
    'colmns' => ['a'],
    'others' => ['d'],
];

$s = Store($array, $options);
$s->getPruned();
// => [
//  [1, 2, null],
//  [4, 5, 6],
//  [7, 8, 9],
// ]
$s->getPrunedT(); # transpose
// => [
//  [1, 4, 7],
//  [2, 5, 8],
//  [null, 6, 9],
// ]
$s->getNamed();
//  ['a' => 1, 'b' => [2, null]],
//  ['a' => 4, 'b' => [5, 6]],
//  ['a' => 7, 'b' => [8, 9],
// ]
$s->getNamedT(); # transpose
//  [
//      'a' => [1, 4, 7],
//      'default' => [[2, 3], [5, 6], [8, 9]],
//  ],
// ]

/** Checking uniqueness is only implemented for named property */
$array = [
    [1, 2, 3],
    [1, 2, 3],
    [2, 3, 4],
];
$s = Store($array, $options);
$s->namedUniqueness();
//  [
//      'a' => [1 => [0, 1]],
//      'b' => [2 => [0, 1]],
//      'c' => [3 => [0, 1]],
//  ],

$s->namedUniqueness('a');
//  [1 => [0, 1]],

/** Checking uniqueness is only implemented for named property */
$array = [
    [1, 2, null],
    [1, 2, null],
    [null, null, null],
];
$s = Store($array, ['drop' => true]);
$s->getPruned();

// => [
//  [1, 2],
//  [4, 5],
// ]
```

Caution
=======

[](#caution)

This Library only treats 2 dimensional array.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~23 days

Recently: every ~34 days

Total

7

Last Release

2256d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f30b0f2f573d18a4295f57085844f4a783fea03e447d248f823946a929018e3?d=identicon)[gorogoroyasu](/maintainers/gorogoroyasu)

---

Top Contributors

[![gorogoroyasu](https://avatars.githubusercontent.com/u/17561419?v=4)](https://github.com/gorogoroyasu "gorogoroyasu (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gorogoroyasu-arylr/health.svg)

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

PHPackages © 2026

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