PHPackages                             samdevbr/laravel-bigreport - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. samdevbr/laravel-bigreport

AbandonedArchivedLibrary[PDF &amp; Document Generation](/categories/documents)

samdevbr/laravel-bigreport
==========================

Package to generate reports with massive amount of data in Laravel.

v1.0(7y ago)141.4k1MITPHPPHP ^7.1

Since May 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/samdevbr/laravel-bigreport)[ Packagist](https://packagist.org/packages/samdevbr/laravel-bigreport)[ RSS](/packages/samdevbr-laravel-bigreport/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Easily create reports with massive amount of data directly from your Eloquent Models
====================================================================================

[](#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
------------

[](#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

```
// config/app.php

// ...

Illuminate\View\ViewServiceProvider::class,

/*
 * Package Service Providers...
 */
Samdevbr\Bigreport\BigreportServiceProvider::class,

// ...
```

Benchmarking
------------

[](#benchmarking)

### This package has been tested with the following conditions

[](#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
-----------

[](#basic-usage)

- As this package uses Eloquent models you must have them prepared, or just create one with us.

`php artisan make:model Post`

```
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    protected $table = 'post';

    public function author()
    {
        return $this->belongsTo(User::class);
    }
}
```

**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

```
use Samdevbr\Bigreport\Fields\FieldCollection;
use Samdevbr\Bigreport\Fields\BelongsTo;
use Samdevbr\Bigreport\Fields\Text;

$fields = [
  Text::make('Post ID', 'id'),
  Text::make('Title', 'title'),
  Text::make('Description', 'description'),
  BelongsTo::make('Author', 'author.name'),
];

$fieldCollection = FieldCollection::make($fields);
```

**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.

```
use Samdevbr\Bigreport\Fields\FieldCollection;
use Samdevbr\Bigreport\Fields\BelongsTo;
use Samdevbr\Bigreport\Fields\Text;

$fields = [
  Text::make('Post ID', 'id'),
  Text::make('Title', 'title'),
  Text::make('Description', 'description', function ($description) {
    return str_limit($description, 20);
  }),
  BelongsTo::make('Author', 'author.name'),
];

$fieldCollection = FieldCollection::make($fields);
```

### Now you just has to export the data from your eloquent model

[](#now-you-just-has-to-export-the-data-from-your-eloquent-model)

```
use App\Post;

$export = Post::export($fieldCollection);

return $export->download('filename.csv');
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2555d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34373264?v=4)[Samuel Oliveira](/maintainers/SamDevBR)[@samdevbr](https://github.com/samdevbr)

---

Top Contributors

[![samdevbr](https://avatars.githubusercontent.com/u/34373264?v=4)](https://github.com/samdevbr "samdevbr (13 commits)")

---

Tags

laraveldatacsvreportbigmassive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/samdevbr-laravel-bigreport/health.svg)

```
[![Health](https://phpackages.com/badges/samdevbr-laravel-bigreport/health.svg)](https://phpackages.com/packages/samdevbr-laravel-bigreport)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[soapbox/laravel-formatter

A formatting library that converts data output between XML, CSV, JSON, TXT, YAML and a few others.

2501.1M12](/packages/soapbox-laravel-formatter)[jeroenzwart/laravel-csv-seeder

Seed the database with Laravel using CSV files

97395.6k2](/packages/jeroenzwart-laravel-csv-seeder)[hitsend/laravel-formatter

A formatting library that converts data output between XML, CSV, JSON, TXT, YAML and a few others.

2502.0k](/packages/hitsend-laravel-formatter)[lukasss93/laravel-larex

Translate your Laravel application from a single CSV file!

9790.3k2](/packages/lukasss93-laravel-larex)[samuelterra22/laravel-report-generator

Rapidly Generate Simple Pdf, Excel &amp; CSV Reports on Laravel (Using Barryvdh/DomPdf or Barryvdh/laravel-snappy &amp; maatwebsite/excel)

125.3k](/packages/samuelterra22-laravel-report-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
