PHPackages                             pangolinkeys/php-binders - 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. pangolinkeys/php-binders

ActiveLibrary

pangolinkeys/php-binders
========================

A repository to simplifiy combining arrays.

v1.01(8y ago)018MITPHP

Since Nov 26Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

php-binders
===========

[](#php-binders)

A php repository to simplify combining arrays.

---

Usage
-----

[](#usage)

Add *Bindable* as a trait on the target classes.

```
use Bindable;
```

Implement the *getKeys()* method so the bind method knows how the array is keyed.

```
public function getKeys()
{
    return array_keys($this->data);
}
```

Create a get method suffixed by the name of the target attribute which is passed a singular key from the *getKeys()* method and returns a reference to the desired position in the array.

```
public function &getAge($person)
{
    return $this->data[ $person ]['Age'];
}
```

Finally, call bind and pass through the second object and the key which the bind should occur on.

```
$people->bind($preference, 'Age');
```

These methods should be implemented appropriately in both classes.

Example
-------

[](#example)

A working example of this can be found in the */example* directory.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

2

Last Release

3086d ago

### Community

Maintainers

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

---

Top Contributors

[![pangolinkeys](https://avatars.githubusercontent.com/u/18718938?v=4)](https://github.com/pangolinkeys "pangolinkeys (11 commits)")

---

Tags

arraysautomaticbinderconvenience

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pangolinkeys-php-binders/health.svg)

```
[![Health](https://phpackages.com/badges/pangolinkeys-php-binders/health.svg)](https://phpackages.com/packages/pangolinkeys-php-binders)
```

PHPackages © 2026

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