1. Go to this page and download the library: Download hugorut/filterable 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/ */
hugorut / filterable example snippets
#Set the package to run all constraints against an Article model
$filter = Filter::setType('articles');
#filter those articles by the Page and Author model so that only
#articles that appear with these contraints are returned
$filter->only([
'pages' => [1, 2],
'authors' => [4, 7, 9]
])->get();