PHPackages                             dq5studios/entity\_column - 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. dq5studios/entity\_column

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

dq5studios/entity\_column
=========================

A drop-in replacement for array\_column() that supports objects with getters.

v1.0.1(1y ago)0541BSD-3-ClausePHPPHP &gt;=8.1CI failing

Since May 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/dq5studios/entity_column)[ Packagist](https://packagist.org/packages/dq5studios/entity_column)[ RSS](/packages/dq5studios-entity-column/feed)WikiDiscussions master Synced 1mo ago

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

[![Build Status](https://camo.githubusercontent.com/4a4ee8f714c03cefc8994eca35e78037d448f0e67bfa602ecab9d1194ec8af6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b732d7374617475732f64713573747564696f732f656e746974795f636f6c756d6e2f6d6173746572)](https://github.com/dq5studios/entity_column/actions)[![codecov](https://camo.githubusercontent.com/ee461c91fc430c85e76bc49b21222c8a9b8d00991f123d3f2411439aff190f54/68747470733a2f2f636f6465636f762e696f2f67682f64713573747564696f732f656e746974795f636f6c756d6e2f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d3461324332726e427577)](https://codecov.io/gh/dq5studios/entity_column)[![shepherd](https://camo.githubusercontent.com/4e20cc6ffef1d4055be6ccabb602b824140f1a9c380ea2351c57627d8c241eeb/68747470733a2f2f73686570686572642e6465762f6769746875622f64713573747564696f732f656e746974795f636f6c756d6e2f636f7665726167652e737667)](https://shepherd.dev/github/dq5studios/entity_column)[![Packagist Version](https://camo.githubusercontent.com/0622dd1b201fbae0bc86bb3e9c6708b68463211ab5afb7de00b2c68f60da26e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64713573747564696f732f656e746974795f636f6c756d6e)](https://camo.githubusercontent.com/0622dd1b201fbae0bc86bb3e9c6708b68463211ab5afb7de00b2c68f60da26e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64713573747564696f732f656e746974795f636f6c756d6e)[![PHP from Packagist](https://camo.githubusercontent.com/c76e4cc9eab9a2675ae47b0bf09fab572e09848dced85c36a423870bda8a9da2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64713573747564696f732f656e746974795f636f6c756d6e)](https://camo.githubusercontent.com/c76e4cc9eab9a2675ae47b0bf09fab572e09848dced85c36a423870bda8a9da2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64713573747564696f732f656e746974795f636f6c756d6e)[![Packagist](https://camo.githubusercontent.com/633f009e4629a044d64342f2b23aeeade9b18be99aaa762b7eab81ed8a1af823/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f64713573747564696f732f656e746974795f636f6c756d6e)](https://camo.githubusercontent.com/633f009e4629a044d64342f2b23aeeade9b18be99aaa762b7eab81ed8a1af823/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f64713573747564696f732f656e746974795f636f6c756d6e)

entity\_column
==============

[](#entity_column)

A drop-in replacement for `array_column()` that supports objects with getters.

Usage
-----

[](#usage)

```
use function DQ5Studios\EntityColumn\entity_column;

function entity_column(array $array, int|string $column_key, int|string|null $index_key = null): array
```

### Parameters

[](#parameters)

array

> A multi-dimensional array or an array of objects from which to pull a column of values from.

column\_key

> The column of values to return.

index\_key

> The column to use as the index/keys for the returned array.

### Return Values

[](#return-values)

Returns an array of values representing a single column from the input array.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance64

Regular maintenance activity

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

532d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.0.1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b371ce403812b4bc53e2829edd6005697cc0eed406dc8bc201d5bae6ff3ad7e?d=identicon)[dq5studios](/maintainers/dq5studios)

---

Top Contributors

[![dq5studios](https://avatars.githubusercontent.com/u/35929285?v=4)](https://github.com/dq5studios "dq5studios (12 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dq5studios-entity-column/health.svg)

```
[![Health](https://phpackages.com/badges/dq5studios-entity-column/health.svg)](https://phpackages.com/packages/dq5studios-entity-column)
```

###  Alternatives

[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)

PHPackages © 2026

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