Download the PHP package robertseghedi/laravel-autofetcher without Composer
On this page you can find all versions of the php package robertseghedi/laravel-autofetcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download robertseghedi/laravel-autofetcher
More information about robertseghedi/laravel-autofetcher
Files in robertseghedi/laravel-autofetcher
Download robertseghedi/laravel-autofetcher
More information about robertseghedi/laravel-autofetcher
Files in robertseghedi/laravel-autofetcher
Vendor robertseghedi
Package laravel-autofetcher
Short Description This is a fresh Laravel plugin which gets data from your database, caches it and gets it ready for displaying on your amazing page. It is really simple to use, so it might not puzzle you.
License MIT
Package laravel-autofetcher
Short Description This is a fresh Laravel plugin which gets data from your database, caches it and gets it ready for displaying on your amazing page. It is really simple to use, so it might not puzzle you.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-autofetcher
Laravel Autofetcher
The most powerful and efficient Laravel plugin for proper data-fetching
This is a fresh Laravel plugin which gets data from your database, caches it and gets it ready for displaying on your amazing page. It is really simple to use, so it might not puzzle you.
Instalation
First, you have to install the package using composer in your project root folder:
Then, you have to add the provider to your like that:
Information
Command name | What it does |
---|---|
Autofetch::database($table, $time - in seconds) | Lists all the results from the table you mention |
Autofetch::result($table, $type (first/last), $time - in seconds) | Lists only the first/last result from the table you mention |
Autofetch::select($table, $selected_fields, $time - in seconds) | Lists all the results from the table you mention, but only the mentioned fields |
Autofetch::top($table, $orderby, $number_of_results, $time - in seconds, $type) | Lists all the results from the table you mention, but only the mentioned fields |
Autofetch::lazy($table, $orderby, $number_of_results, $time - in seconds) | Lazy-lists all the results from the table you mention, but only as much results as you mentioned |
Usage
Now you can start using the package.
1. Include it in your controller
2. Start extracting fresh data
- $table - the table's name that you want to extract data from
- 'donated_money' - the order-by-field's name
- 10 - number of results (so the above code will return a top 10)
- 1800 - the number of seconds for which the data will be cached
- 'public' - the public option is for efficient data-caching & displaying the data on a public website which doesn't require refresh-updated data. If you use the public option, your user-cached data won't refresh until the specified time is up. If you use the private option, your user-cached data will refresh instantly. The private option is good if you are developing an admin dashboard or a limited-access app.
3. Display it as you wish
Follow this package for future updates
All versions of laravel-autofetcher with dependencies
PHP Build Version
Package Version
No informations.
The package robertseghedi/laravel-autofetcher contains the following files
Loading the files please wait ....