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

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

2291d 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.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

33182.7k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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