PHPackages                             thiagovictorino/laravel-resource-exporter - 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. thiagovictorino/laravel-resource-exporter

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

thiagovictorino/laravel-resource-exporter
=========================================

A ServiceProvider that helps you to export a data resource from an api that returns a Laravel pagination payload

v0.0.6(6y ago)032MITPHPPHP ^7.1CI failing

Since Feb 26Pushed 5y agoCompare

[ Source](https://github.com/thiagovictorino/laravel-resource-exporter)[ Packagist](https://packagist.org/packages/thiagovictorino/laravel-resource-exporter)[ RSS](/packages/thiagovictorino-laravel-resource-exporter/feed)WikiDiscussions master Synced yesterday

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

Laravel Resource Exporter
=========================

[](#laravel-resource-exporter)

This package helps you to export a data resource from an api that returns a Laravel pagination payload (including bootstrap 3 payload).

Currently it is exporting for CSV, but any PR is welcome =)

Installation
------------

[](#installation)

Add package

```
composer require thiagovictorino/laravel-resource-exporter
```

### Configuration

[](#configuration)

To create configuration file run:

```
php artisan vendor:publish --provider="Victorino\ResourceExporter\ResourceExporterServiceProvider"
```

Usage
-----

[](#usage)

```
/**
 * Getting the export builder
 */

$exporter = \ResourceExporter::endpoint('http://yourl.com/resource?anyfilters');

/**
 * optional: Set the Bearer Token on request
 */
$exporter->withBearerToken('abcd123');

/**
 * optional: Set the payload as a Bootstrap 3 standard. You can set it automatically
 * on configurations
 */
$exporter->withBootstrapThree();

/**
 * optional: Add a delay between each requests
 */
$exporter->withDelay(5);

/**
 * Will save the file on disk that was set on configurations
 */
$exporter->toCSV('my-file-name');
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email eu \[at\] thiagovictorino.com instead of using the issue tracker.

Credits
-------

[](#credits)

- [Thiago Victorino](https://github.com/thiagovictorino)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.9% 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

Every ~11 days

Total

6

Last Release

2192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9832cbcceba48bbeb7969450f44440826bc123abdd875904ed3bea7a79987b2b?d=identicon)[thiagovictorino](/maintainers/thiagovictorino)

---

Top Contributors

[![thiagovictorino](https://avatars.githubusercontent.com/u/443991?v=4)](https://github.com/thiagovictorino "thiagovictorino (29 commits)")[![sl0wik](https://avatars.githubusercontent.com/u/2696038?v=4)](https://github.com/sl0wik "sl0wik (6 commits)")

---

Tags

laravelcsvthiago victorinolaravel resource exporterlaravel export pagination

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thiagovictorino-laravel-resource-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/thiagovictorino-laravel-resource-exporter/health.svg)](https://phpackages.com/packages/thiagovictorino-laravel-resource-exporter)
```

###  Alternatives

[wilgucki/csv

Laravel 5 package for writing and reading CSV files

49284.6k1](/packages/wilgucki-csv)[bfinlay/laravel-excel-seeder

Seed the database with Laravel using Excel, XLSX, XLS, CSV, ODS, Gnumeric, XML, HTML, SLK files

3944.4k](/packages/bfinlay-laravel-excel-seeder)[initred/laravel-tabula

laravel-tabula is a tool for liberating data tables trapped inside PDF files for the Laravel framework.

1418.6k](/packages/initred-laravel-tabula)

PHPackages © 2026

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