1. Go to this page and download the library: Download jcshoww/query-collection 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/ */
jcshoww / query-collection example snippets
bash
...
use Jcshoww\QueryCollection\QueryCollection;
class TestQueryCollection extends QueryCollection
{
/**
* {@inheritDoc}
*/
public function __construct(array $fields = [])
{
$this->push(new CustomFilter('status', $fields['status']));
}
}