Download the PHP package samdevbr/laravel-bigreport without Composer
On this page you can find all versions of the php package samdevbr/laravel-bigreport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-bigreport
Easily create reports with massive amount of data directly from your Eloquent Models
This package allows you to quickly export Eloquent models into CSV files.
Installation
- You can install this package using composer
composer require samdevbr/laravel-bigreport - Publish configuration files
php artisan vendor:publish --tag=config - Register the service provider
Benchmarking
This package has been tested with the following conditions
Table size: 20.5 MB
Rows: 80K
Relations: 2 Relations
Columns: 18
Seconds to export: 4 seconds
Basic Usage
- As this package uses Eloquent models you must have them prepared, or just create one with us.
php artisan make:model Post
If you want to test this package with it's full capacity you must populate your table with at least 80k entries. (Just use seeds)
- Now you must create a field collection before exporting your data
- Field Collection tells the package what columns should be exported
Note that we used two types of fields Text and BelongsTo, the difference is that BelongsTo will map the informed relation within the model.
- Optionally you can create value resolvers for your field.
- When a resolver is informed the package will use the function to format the original value and return it.
Now you just has to export the data from your eloquent model
All versions of laravel-bigreport with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
illuminate/database Version ^5.6.0
illuminate/routing Version ^5.6.0
illuminate/support Version ^5.6.0
illuminate/database Version ^5.6.0
illuminate/routing Version ^5.6.0
illuminate/support Version ^5.6.0
The package samdevbr/laravel-bigreport contains the following files
Loading the files please wait ...