PHPackages                             ipengxh/fast-export - 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. ipengxh/fast-export

ActiveLibrary

ipengxh/fast-export
===================

A fast data export library for laravel eloquent(mysql driver)

213PHP

Since Sep 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ipengxh/fast-export)[ Packagist](https://packagist.org/packages/ipengxh/fast-export)[ RSS](/packages/ipengxh-fast-export/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

fast-export
===========

[](#fast-export)

installation
------------

[](#installation)

```
composer require ipengxh/fast-export
```

benchmark
---------

[](#benchmark)

```
create table tests
(
    id         bigint unsigned auto_increment
        primary key,
    string_1   varchar(255) not null,
    string_2   varchar(255) not null,
    string_3   varchar(255) not null,
    string_4   varchar(255) not null,
    string_5   varchar(255) not null,
    integer_1  int          not null,
    integer_2  int          not null,
    integer_3  int          not null,
    integer_4  int          not null,
    integer_5  int          not null,
    created_at timestamp    null,
    updated_at timestamp    null
);
```

1,000,000 rows

```
$headers = [
    'id' => 'ID',
    'string_1' => "String 1",
    'string_2' => "String 2",
    'string_3' => "String 3",
    'string_4' => "String 4",
    'string_5' => "String 5",
    'integer_1' => "Integer 1",
    'integer_2' => "Integer 2",
    'integer_3' => "Integer 3",
    'integer_4' => "Integer 4",
    'integer_5' => "Integer 5",
];
$data = app(Test::class)->orderBy('id', 'desc');
FastExport::download($data, $headers, 'test data');
```

finished in 2.57 seconds.

usage
-----

[](#usage)

```
use FastExport\FastExport;

public function export()
{
    $users = \App\Models\User::withTrashed()->orderBy('id', 'desc');

    // save as csv file
    FastExport::save($users, storage_path("user lists.csv"), [
        'id' => "User ID",
        'name' => "Name of user",
        'email' => "E-mail address",
        'created_at' => "Registered at"
    ]);

    // export as csv file
    FastExport::csv($users, [
        'id' => "User ID",
        'name' => "Name of user",
        'email' => "E-mail address",
        'created_at' => "Registered at"
    ], 'users');

    // advanced export
    FastExport::csv($users, [
        'id' => "User ID",
        'name' => "Name of user",
        'email' => "E-mail address",
        'created_at' => "Registered at",
        'status' => "Status"
    ], 'users', function ($row) {
        return [
            $row->id,
            $row->name,
            $row->email,
            $row->created_at,
            $row->deleted_at ? "Deleted" : "Actived"
        ];
    });
}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f19b0185955521032cee1c21108314015d0623fc8ba822724b6fe4800a1bc55?d=identicon)[phpwheels](/maintainers/phpwheels)

---

Top Contributors

[![ipengxh](https://avatars.githubusercontent.com/u/1261998?v=4)](https://github.com/ipengxh "ipengxh (3 commits)")

### Embed Badge

![Health badge](/badges/ipengxh-fast-export/health.svg)

```
[![Health](https://phpackages.com/badges/ipengxh-fast-export/health.svg)](https://phpackages.com/packages/ipengxh-fast-export)
```

PHPackages © 2026

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