techone / think-excel
此包的最新版本(v0.2)没有提供许可信息。
一个为 ThinkPHP 项目读取和写入电子表格文件的纯 PHP 库。
v0.2
2018-12-05 15:15 UTC
Requires
- php: ^5.6|^7.0
- cache/redis-adapter: ^1.0
- cache/simple-cache-bridge: ^1.0
- phpoffice/phpspreadsheet: ^1.4
- techone/support: >=0.8.0
This package is not auto-updated.
Last update: 2024-09-20 02:24:40 UTC
README
一个基于PhpSpreadsheet的拓展包,简化了Excel的导出和导入。
安装
通过composer
安装此扩展:
composer require techone/php-excel
快速开始
创建一个导出类:
use TechOne\Excel\Concerns\FromArray; class UsersExport implements FromArray { public function array() { return [ [1, 2, 3], [1, 2, 3] ]; } }
可以这样调用:
Excel::download(new UsersExport(), 'data.xlsx');
协议
PHP-Excel采用 Apache 2.0 license 开源协议发布。
联系
有问题请提交 Issues:https://github.com/techoner/php-excel/issues