Download the PHP package nero/backpack-export without Composer

On this page you can find all versions of the php package nero/backpack-export. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package backpack-export

Introduction

There is a problem with exporting data from pages in Backpack, it exports only the data that you see on page, and it's limited up to 100 rows.

So the main purpose of this package is to allow you to export not only data you see on page but all rows. Also, it works even if you have applied filters.

The export based on job. After the export (job) is done, it will send a letter to user's email. But if you want, you can override this logic and set your own Notification class, it can be done with changing config (backpack_export.php).

I recommend to check the config out, it can be found in config of your application (config/backpack_export.php)

Install

To install this package, you have to run this command:

Next step is to run:

As result of command, there will be 2 files added in your application:

  1. in app/config, there will be backpack_export.php config
  2. in your resource/views/vendor/backpack/crud/inc, there will be export_buttons.blade.php

How to use

After installing you have to make 3 steps:

  1. Go to the crud class where you want to enable an export
  2. Include Nero\BackpackExport\Application\Traits\ExportOperation trait. Example:

  3. Go to the setupListOperation and call enableAdvancedExportButtons method:

IMPORTANT: You MUST call either $this->crud->enableExportButtons(); or $this->enableAdvancedExportButtons();, but not both!

It's done!. Now you can export all data from table, not only the displayed ones

Uninstall

Uninstalling process is not complicated. It consists of two steps:

  1. removing package from composer
  2. removing config, views and language files

To remove package, execute this command

Then we have to delete config. It can be found in config, full path config/backpack_export.php:

Now we have to delete export_buttons.blade.php. It can be found as resource/views/vendor/backpack/crud/inc/export_buttons.blade.php:

As last step is deleting language packages:

TODO


All versions of backpack-export with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
backpack/crud Version ^5.4
phpoffice/phpspreadsheet Version ^1.29
anourvalar/eloquent-serialize Version ^1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nero/backpack-export contains the following files

Loading the files please wait ....