PHPackages                             oliver-dvorski/array\_find - 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. [Search &amp; Filtering](/categories/search)
4. /
5. oliver-dvorski/array\_find

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

oliver-dvorski/array\_find
==========================

array\_find for php. It stops the linear search when the first match is found.

1.0.1(3y ago)0304MITPHP

Since Mar 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/oliver-dvorski/array_find)[ Packagist](https://packagist.org/packages/oliver-dvorski/array_find)[ RSS](/packages/oliver-dvorski-array-find/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

ℹ️ As of php 8.4, this function is [natively supported by php](https://www.php.net/manual/en/function.array-find.php).

Install the dependencies with `composer install`.

You can confirm that the program does what it should by running the `composer test` script.

Usage
-----

[](#usage)

```
$people = [
  ['name' => 'John', 'age' => 20],
  ['name' => 'Jane', 'age' => 21],
  ['name' => 'Jack', 'age' => 22],
];

// Returns ['name' => 'Jane', 'age' => 21]
$found = array_find($people, fn($item) => $item['name'] === 'Jane');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c9277cac2939e23607d7c3129aef66336b2a9e6c43113cfaaa11b266b3b1e65?d=identicon)[oliver-dvorski](/maintainers/oliver-dvorski)

---

Top Contributors

[![oliver-dvorski](https://avatars.githubusercontent.com/u/9038049?v=4)](https://github.com/oliver-dvorski "oliver-dvorski (4 commits)")

---

Tags

arrayslinear-search-algorithmphpsearch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oliver-dvorski-array-find/health.svg)

```
[![Health](https://phpackages.com/badges/oliver-dvorski-array-find/health.svg)](https://phpackages.com/packages/oliver-dvorski-array-find)
```

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[massive/search-bundle

Massive Search Bundle

721.4M13](/packages/massive-search-bundle)[shyim/opensearch-php-dsl

OpenSearch/Elasticsearch DSL library

175.9M9](/packages/shyim-opensearch-php-dsl)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)

PHPackages © 2026

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