PHP code example of aoding9 / dcat-xlswriter-export
1. Go to this page and download the library: Download aoding9/dcat-xlswriter-export library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aoding9 / dcat-xlswriter-export example snippets
//use xxx
protected function grid() {
return Grid::make(new User(), function(Grid $grid) {
$grid->export(new UserExport());
//$grid->export(new UserMergeExport());
});
}
// UserExport中添加
public $useSwoole = true;
// UserController中添加
use Aoding9\Dcat\Xlswriter\Export\HandleExportIfUseSwoole;