mibadger/query

This package is abandoned and no longer maintained. No replacement package was suggested.

The Query Component

v3.0.1 2022-09-16 10:35 UTC

This package is auto-updated.

Last update: 2022-11-19 17:10:12 UTC


README

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

The Query Component. For more documentation, see the docs folder.

Example

<?php

use miBadger\Query\Query;

/**
 * Get John Doe's email.
 */
$query = (new Query($pdo, $table))
	->select(['email'])
	->where(
		Query::And(
			Query::Like('first_name', 'John'),
			Query::Like('last_name', 'Doe')))
	->limit(3);

/**
 * Get the query result.
 */
foreach ($query->execute() as $row) {
	echo $row['email'];
}