Skip to content

xtwoend/hyperf-query-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hyperf Query

Installation

composer require xtwoend/query-string

add config in bin/bootstrap.php

$app->configure('query-builder');
$app->register(\Xtwoend\QueryString\ConfigProvider::class);

Usage


\\ ?sort[id]=1&sort[name]=0
$request->sorts();
\\ result ['id' => 'desc', 'name'=> 'asc']

\\ ?q=keyword
$request->filter();

About

AddOn sorts & filters function on request

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages