polyfills/array-find

PHP: Provides a user-land polyfill for `array_find`, `array_find_key`, `array_any` and `array_all` functions added in PHP 8.4.

Maintainers

Package info

github.com/PHP-Polyfills/array-find

Homepage

pkg:composer/polyfills/array-find

Statistics

Installs: 67 642

Dependents: 0

Suggesters: 0

Stars: 9

Open Issues: 0

v1.0.0 2024-06-01 22:26 UTC

This package is auto-updated.

Last update: 2026-03-01 00:57:51 UTC


README

Latest Stable Version License PHP Version Require

Provides user-land PHP polyfills for the array_find, array_find_key, array_any and array_all functions added in PHP 8.4.

Requires PHP 7.1 or later. Not supported on PHP 8.4 because these functions are natively implemented in PHP 8.4.

Installation

composer require polyfills/array-find

Usage

Simply use the array_find, array_find_key, array_any and array_all functions as if they were declared already.

Contributions

Contributions are welcome either as a GitHub issue or a PR to this repo.