定制 xerobase/excel-reporter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xerobase/excel-reporter

Composer 安装命令:

composer require xerobase/excel-reporter

包简介

Creating excel reports never been easier!

README 文档

README

Create excel reports, from any data structure (collection, array, objects) with a line of code!

Installation

composer require xerobase/excel-reporter

Usage

Create an instance of Export class

$exporter = new \Xerobase\ExcelReporter\Export();

You can simply export your data by calling export method :

// Your source can be an Eloquent Model
$books = \App\Models\Book::all();

// Or an associative array
$books = [
  'Title' => 'Foo',
  'Author' => 'Bar'
];

// Or an stdClass object
$books = new stdClass();
$books->title = 'Foo';
$books->author = 'Bar';

$exporter->export($books);

Maybe want to filter some of unnecessary fields :

$exporter->filterColumns(['id', 'created_at', 'updated_at'])->export($books);

Set direction to RTL :

$exporter->setRightToLeft()->export($books);

Or change format to CSV :

$exporter->setFormat('csv')->export($books);

统计信息

  • 总下载量: 97
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固