ramsey/array_column
A drop-in polyfill for PHP's array_column() function, bringing this convenient array helper to PHP 5.3 and 5.4 projects. Extract values or reindex arrays by key without requiring newer PHP versions.
array_column() for PHP < 5.5. Its presence in a codebase is a direct signal that a product (or one of its transitive dependencies) still supports an end-of-life runtime. That makes it a useful data point when deciding whether to keep, freeze, or retire legacy PHP support.array_column() polyfills are roughly 15–30 lines of code. The decision is not really build-vs-buy—it's whether to carry a third-party dependency for something you could vendor inline, and whether an archived dependency is acceptable under your supply-chain policy.Consider it only when:
array_column() behavior, and you cannot bump the runtime in the current release cycle.Look elsewhere when:
array_column() is native. The package adds nothing but dependency risk.symfony/polyfill-php55 provides array_column() and is actively maintained—this is the defensible substitute in almost every case where the need is real.To executives: This is a tiny, archived compatibility helper for a PHP feature that has been built into the language since mid-2013. It is not a strategic dependency, it delivers no user-facing value, and it should not be adopted for anything new. Its only real value to us is as evidence: wherever it appears, we are still paying to support an end-of-life runtime. I recommend we treat it as a signal to fund PHP upgrades and shrink our legacy support surface, not as a component to standardize on. If a team genuinely needs the functionality on an old runtime, we point them to the maintained Symfony polyfill instead.
To engineering: The package is ~20 lines of MIT-licensed code that backfills array_column() for PHP < 5.5. It was last released in March 2015 and is archived—no fixes, no security response. If you encounter it: (1) check whether the PHP floor can simply be raised, which removes the dependency outright; (2) if not, swap to symfony/polyfill-php55, which is maintained and covers the same gap; (3) if you only need it in one place, vendor the function directly and drop the dependency. Do not add it to new work, and flag it in upgrade planning as a legacy-compatibility marker rather than something to preserve.
How can I help you explore Laravel packages today?