PHP code example of sylarele / http-query-config
1. Go to this page and download the library: Download sylarele/http-query-config 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/ */
sylarele / http-query-config example snippets
declare(strict_types=1);
namespace Domain\Acme\Queries;
use Sylarele\HttpQueryConfig\Query\Query;
use Sylarele\HttpQueryConfig\Query\QueryConfig;
use Sylarele\HttpQueryConfig\Models\MyModel;
class FooModelQuery extends Query
{
protected function model(): string
{
return FooModel::class;
}
protected function configure(QueryConfig $config): void
{
$config->filter('filterName')->type(FilterType::Type);
}
}