php-extended/php-data-finder-array

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

4.0.0 2022-05-30 05:47 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. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-data-finder-array": "^3"
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

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).