Download the PHP package eseperio/yii2-exportable-gridview without Composer

On this page you can find all versions of the php package eseperio/yii2-exportable-gridview. 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 yii2-exportable-gridview

yii2 Exportable Gridview

Gridview with full data export

This works as normal gridview, but adds a button to export the data loaded into it. It exports all records found on the active record query. Works with the same data as the gridview does. Uses phpspreadsheet to generate export file.

How does it work

Following the same behavior that pjax widget, this widget act as a normal gridview until a request is made with the url query parameters export-grid and export-container. The latter should contain the id of gridview without the hashtag. When both parameters are received, response is cleared and then spreadsheet generation begins. This allow to generate a file with absolutely all records found on the gridview.

This project is currently under development. Any contribution is welcome.

Installation

Usage

This widget extends from yii2-gridview but add functionality to export all the rows queried by the DataProvider.

Additional configuration

Name Type default Description
layout string {summary} {items} {export} {pager} In addition to default layout this gridview has {export} section. This is the place for export button.
fileName string exported.xls Name to use on the generated filename. If writerType value is not set then the writer will be guessed from the extension.
writerType string null The writer to be used when generating file. See Spreadsheet writer. Accepts Xls, Xlsx, Ods, Csv, Html, Tcpdf, Dompdf, Mpdf
exportable boolean true Whether to enable export for this gridview
exportLinkOptions array ['class'=> 'btn btn-default', 'target'=>'_blank'] Options for the export link. It also accepts label and encode
exportColumns array empty Property to define a different column combination for export only. If empty default columns of gridview will be used

Constants available

All writers identifiers are available through constants.

Constant name Value
WRITER_XLS Xls
WRITER_XLSX Xlsx
WRITER_ODS Ods
WRITER_CSV Csv
WRITER_HTML Html
WRITER_TCPDF Tcpdf
WRITER_DOMPDF Dompdf
WRITER_MPDF Mpdf

Notes

All html tags are removed when exporting.

Todo


All versions of yii2-exportable-gridview with dependencies

PHP Build Version
Package Version
Requires phpoffice/phpspreadsheet Version ^1.1
yiisoft/yii2 Version ~2.0.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 eseperio/yii2-exportable-gridview contains the following files

Loading the files please wait ....