{"repo":"illuminatech/data-provider","free":true,"listed":false,"github":"https://github.com/illuminatech/data-provider","clone":"git clone https://github.com/illuminatech/data-provider.git","description":"Allows easy build for DB queries from API requests","language":"PHP","stars":44,"topics":["laravel","illuminate","database","query","builder","api"],"license":null,"category":"databases-storage","readme_excerpt":"Laravel Data Provider This extension allows building of the complex search queries based on the request in Laravel. In particular, it is useful for REST API composition. For license information check the LICENSE-file. Installation ------------ The preferred way to install this extension is through composer. Either run or add to the \"require\" section of your composer.json. Usage ----- This extension allows building of the complex search queries based on the request data. It handles filtering, sorting, pagination, include of extra fields or relations on demand. Both Eloquent Active Record and plain database queries are supported. This extension provides Illuminatech\\DataProvider\\DataProvider class, which wraps given data source object like database query builder, and provide the means to define controller-level interaction to search through this data source. Usage example: This example will respond to the following request: Same example with the plain database query usage: Data provider defines only a few methods for the data querying: - get() - returns all records matching request - paginate() - returns all records matching request with a paginator - simplePaginate() - returns all records matching request with a simple paginator - cursorPaginate() - returns all records matching request with a cursor paginator However, you can use prepare() method to get data source object, adjusted to given request, to invoke the method you need. For example: Method prepare() is immutable, lea","default_branch":null,"files":null,"tree":[],"storefront":"/r/illuminatech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/illuminatech/data-provider/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."}