php-extended/php-data-finder-array

An implementation of the data finder object based on a memory based php array

6.0.5 2023-08-21 18:45 UTC

README

An implementation of the data finder object based on a memory based php array.

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-data-finder-array ^6

Basic Usage

This library is designed to be used with a collection of data packed as a php array. The data should be on object form and given to the data finder.

The data finder provides query methods to retrieve specific objects that have specific properties within the list, without having to implement the search, ordering, offset and limit mecanisms over and over again.

For an example usage, see the test case for the ArrayDataFinder class.

License

MIT (See license file).