{"repo":"spatie/laravel-query-builder","free":true,"listed":false,"github":"https://github.com/spatie/laravel-query-builder","clone":"git clone https://github.com/spatie/laravel-query-builder.git","description":"Easily build Eloquent queries from API requests","language":"PHP","stars":4464,"topics":["api","laravel","php","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Build Eloquent queries from API requests Basic usage Filter a query based on a request: /users?filter[name]=John : Read more about filtering features like: partial filters, exact filters, scope filters, custom filters, ignored values, default filter values, ... Grouping multiple filters with OR/AND: /users?filter[q]=John : AllowedFilter::groupAnd() is also available. Members can be any AllowedFilter type and the shorthand value is broadcast to every member. Read more about the JSON:API Fancy Filters recommendation this feature follows. Including relations based on a request: /users?include=posts : Read more about include features like: including nested relationships, including relationship count, custom includes, ... Sorting a query based on a request: /users?sort=id : Read more about sorting features like: custom sorts, sort direction, ... Works together nicely with existing queries: Selecting fields for a query: /users?fields[users]=id,email Read more about selecting fields. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: Read the installation notes on the docs site: https://spatie.be/docs/laravel-query","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-query-builder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}