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.

Installs: 2 291

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 1

Open Issues: 1

pkg:composer/mannion007/php-binary-search

1.0.8 2016-06-06 16:41 UTC

This package is not auto-updated.

Last update: 2025-11-09 01:25:35 UTC


README

Build Status

This is a composer package which wraps up the algorithm written by Michael King from (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 Installation

To install, use Composer thusly:

composer require mannion007/php-binary-search

License

This code falls under the MIT license.