Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Query

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'];
}
You can’t perform that action at this time.