Download the PHP package thomascombe/backpack-async-export without Composer

On this page you can find all versions of the php package thomascombe/backpack-async-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-async-export

Laravel Backpack Async Export

Latest Version on Packagist PHPCS check Total Downloads

This is a package to manage async export and import in Backpack for Laravel

Installation

You can install the package via composer:

Version PHP Laravel Backpack
1.x 7.4 - ^8.0 ^8.0 - ^9.0 - ^10.0 4.1.* - ~5.0
2.x ^8.1 ^9.0 - ^10.0 ~5.5 - ~6.0
3.x ^8.1 ^10.0 ~6.0
4.x ^8.2 ^11.0 ~6.0

You can publish and run the migrations with:

You can publish the config file with:

This is the contents of the published config file:

Usage for export

Add export item in menu

Create you export class

For all details, have a look at Laravel Excel Package.

You can make your export class extends our LaravelExcel abstract.

Create your controller

Your controller need to implement interface

Use awesome trait

Call method to add buttons

Add method to your CRUD controller

Simple csv export

It may sometimes be necessary to export large amounts of data. PhpSpreadsheet (used behind the hood by this package) does not always offer the best performance. In this case, it is recommended to use the low-level functions of PHP, such as fputcsv.

This package has an abstract class SimpleCsv which can be extended to use this export mode. Of course, it is more limited and only allows you to define a query, headers and a mapping between the model and the data table to be exported.

Usage for import

Add import item in menu

Create you import class

For all details, have a look at Laravel Excel Package

Create your controller

Your controller need to implement interface

Use awesome trait

Call method to add buttons

Add method to your CRUD controller

Need more?

Override ImportExport model

You can override ImportExport model using config : import_export_model.
Your model class need to implement \Thomascombe\BackpackAsyncExport\Models\ImportExport.

Update export name

Package allow to change export name with interface on your export class: Thomascombe\BackpackAsyncExport\Exports\ExportWithName

Multi export by CRUD?

You can easily have multi export on save CRUD.
Your CRUD controller need to implement Thomascombe\BackpackAsyncExport\Http\Controllers\Admin\Interfaces\MultiExportableCrud interface.

Array keys: key for query params and dynamic method name
Array values: Export name (display in CRUD button)

For each new export you have to add news methods:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of backpack-async-export with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
backpack/crud Version ~6.0
illuminate/contracts Version ^11.0
maatwebsite/excel Version ^3.1
spatie/laravel-package-tools Version ^1.12
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 thomascombe/backpack-async-export contains the following files

Loading the files please wait ....