PHPackages                             kkboranbay/backpack-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. kkboranbay/backpack-export

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

kkboranbay/backpack-export
==========================

A Laravel package to export data from Backpack admin panel list pages and send it via email as an Excel file. This package allows easy integration into any Backpack-based project, enabling administrators to export filtered or full data directly from the admin panel and receive the exported file via email.

v1.0.6(1y ago)641↓33.3%MITPHPPHP &gt;=8.1

Since Sep 13Pushed 1y ago2 watchersCompare

[ Source](https://github.com/kkboranbay/backpack-export)[ Packagist](https://packagist.org/packages/kkboranbay/backpack-export)[ RSS](/packages/kkboranbay-backpack-export/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Introduction
------------

[](#introduction)

This package is designed to address limitations in Laravel Backpack's built-in export feature, which uses jQuery DataTables and only exports the data visible on the page. While you can choose the 'Show All' option to load and export all data, this can lead to memory issues when dealing with large datasets.

Existing export packages for Laravel Backpack fall short in several ways—some suffer from memory leaks, others don't support email delivery, and many fail to work with filtered data or fields utilizing closures in `setupListOperation`. This package solves these issues by enabling seamless export of all or filtered data, delivering the exported files via email, all while avoiding memory leaks and handling closures without errors.

Note
----

[](#note)

This package is designed to work only for Backpack Pro users.

Environment Variables
---------------------

[](#environment-variables)

Add the following variable to your `.env` file. It is necessary to fill in this variable for the package to function correctly:

```
DISABLE_CSRF_HASH=your_unique_csrf_hash
```

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

[](#installation)

To install the package, follow these steps:

1. Install the package via Composer:

    ```
    composer require kkboranbay/backpack-export
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --tag=backpack-export-config
    ```

    This will create a new file at `config/backpack/operations/backpack-export.php` where you can customize options like the queue connection.
3. Publish the view files:

    ```
    php artisan vendor:publish --tag=backpack-export-views
    ```

    This will create a new folder `backpack-export` with view files in `resources/views/vendor/backpack/`. You can customize the email views or export button here.
4. Publish the translation files:

    ```
    php artisan vendor:publish --tag=backpack-export-translations
    ```

    This will create a new folder `backpack-export` in `resources/lang/vendor/backpack/backpack-export`. Here, you can add translations.
5. **Update CSRF Token Verification**

    To handle CSRF token verification for the export process, you need to update the `VerifyCsrfToken.php` file. Add the following code to `app/Http/Middleware/VerifyCsrfToken.php`:

    ```
    public function handle($request, \Closure $next)
    {
        if ($request->has(config('backpack.operations.backpack-export.disableCSRFhash'))) {
            $this->except[] = '*';
        }

        return parent::handle($request, $next);
    }
    ```

### Usage

[](#usage)

1. In your CRUD controller, add the `ExportOperation` trait to enable export functionality:

    ```
    use \Kkboranbay\BackpackExport\Traits\ExportOperation;
    ```
2. To control access to the export feature, you can add permission checks in your CRUD controller. For example:

    ```
    if (backpack_user() && backpack_user()->can('user-export')) {
        $this->crud->allowAccess('export');
    }
    ```

    This will ensure that only users with the `user-export` permission can see and use the export button.

### Troubleshooting

[](#troubleshooting)

If you encounter any issues:

- Ensure that all environment variables are correctly set in your `.env` file.
- Check the logs for any errors related to the export process.
- Verify that the necessary permissions and settings are correctly configured in Laravel Backpack.

### Contributing

[](#contributing)

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the [GitHub repository](https://github.com/kkboranbay/backpack-export).

### License

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for more details.

---

Feel free to adjust the details based on your specific package and its functionality.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Every ~5 days

Total

7

Last Release

570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e0b2648827318700b82b9926dfe73f6356450ea05f907c9d6cb9c906a4d6d69?d=identicon)[kkboranbay](/maintainers/kkboranbay)

---

Top Contributors

[![kkboranbay](https://avatars.githubusercontent.com/u/40759886?v=4)](https://github.com/kkboranbay "kkboranbay (18 commits)")

---

Tags

laravelexportemailexceladmin-panelbackpackdata-export

### Embed Badge

![Health badge](/badges/kkboranbay-backpack-export/health.svg)

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

###  Alternatives

[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[juanparati/sendinblue

A Sendinblue v3 interface provider for Laravel

20269.6k](/packages/juanparati-sendinblue)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)[juanparati/brevosuite

Complete Brevo integration with Laravel

1010.8k](/packages/juanparati-brevosuite)

PHPackages © 2026

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