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 6y 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 3w ago

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 21% 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

2246d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[firefly-iii/data-importer

Firefly III Data Import Tool.

8035.8k](/packages/firefly-iii-data-importer)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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