PHPackages                             mannion007/php-binary-search - 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. mannion007/php-binary-search

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

mannion007/php-binary-search
============================

Based on the Work of Michael King, this package provides functionality to perform a binary search of an ordered array, providing greatly improved performance over PHP's own array\_search method.

1.0.8(10y ago)62.3k1[1 issues](https://github.com/mannion007/php-binary-search/issues)MITPHPPHP &gt;=5.3.0

Since Apr 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mannion007/php-binary-search)[ Packagist](https://packagist.org/packages/mannion007/php-binary-search)[ Docs](https://github.com/mannion007)[ RSS](/packages/mannion007-php-binary-search/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)DependenciesVersions (9)Used By (0)

PHP Binary Search
=================

[](#php-binary-search)

[![Build Status](https://camo.githubusercontent.com/cfa55a3e4d63ac099fcd64a8077a4e12d57f1267f4457fa3afe4be82cd964134/68747470733a2f2f7472617669732d63692e6f72672f6d616e6e696f6e3030372f7068702d62696e6172792d7365617263682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mannion007/php-binary-search)

This is a composer package which wraps up the algorithm written by Michael King from ([mkwd.net](http://mkwd.net)). By performaing a binary search rather than a linear search, this package provides functionality to perform searches through ordered arrays with greatly imroved performance over PHP's [array\_search](http://php.net/manual/en/function.array-search.php)Installation
==========================================================================================================================================================================================================================================================================================================================================================================================

[](#this-is-a-composer-package-which-wraps-up-the-algorithm-written-by-michael-king-from-mkwdnetby-performaing-a-binary-search-rather-than-a-linear-search-this-package-provides-functionality-to-perform-searches-through-ordered-arrays-with-greatly-imroved-performance-over-phps-array_searchinstallation)

To install, use Composer thusly:

```
composer require mannion007/php-binary-search

```

License
=======

[](#license)

This code falls under the MIT license.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Recently: every ~0 days

Total

8

Last Release

3677d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5822816?v=4)[James Mannion](/maintainers/mannion007)[@mannion007](https://github.com/mannion007)

---

Top Contributors

[![mannion007](https://avatars.githubusercontent.com/u/5822816?v=4)](https://github.com/mannion007 "mannion007 (7 commits)")

### Embed Badge

![Health badge](/badges/mannion007-php-binary-search/health.svg)

```
[![Health](https://phpackages.com/badges/mannion007-php-binary-search/health.svg)](https://phpackages.com/packages/mannion007-php-binary-search)
```

###  Alternatives

[norberttech/static-content-generator-bundle

Generate static html pages from your symfony application

374.1k](/packages/norberttech-static-content-generator-bundle)

PHPackages © 2026

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