PHP code example of perfectin / specification

1. Go to this page and download the library: Download perfectin/specification library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

perfectin / specification example snippets


use \PerfectIn\Specification\Query\QuerySpecificationInterface;

public function query(QuerySpecificationInterface $querySpecification) {
	$query = $this->createQuery();
	$querySpecification->selectSatisfying($query);
	return $query->execute();
}