bbear / mbexcel
v0.0.3
2017-11-23 03:19 UTC
Requires
- php: >=5.4.0
- bbear/tools: ^0.1.0
- phpoffice/phpexcel: ^1.8
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is not auto-updated.
Last update: 2025-03-21 04:26:24 UTC
README
use MBExcel\Factory; define('APP_ROOT' , __DIR__); //传入excel的保存路径 $excel = new Factory( APP_ROOT ); $data = array( array( 'name' => '武帅', 'phone' => '13334343344', ), array( 'name' => '乔辉', 'phone' => '13334343345', ) ); $e = $excel->easyExport($data); //var_dump($e); //数据量大的时候允许分段写入 $e = $excel->easyExport($data , 'first'); $e = $excel->easyExport($data , 'continue' , $e['ident']); $e = $excel->easyExport(array() , 'end' , $e['ident']); //var_dump($e);