zms/excel

v1.0.0 2025-03-16 09:01 UTC

This package is not auto-updated.

Last update: 2025-03-31 07:16:23 UTC


README

需要安装 xlswriter 扩展 

介绍(xlswriter)

<?php
declare(strict_types=1);

use Zms\Excel\Export;

require_once dirname(__DIR__) . "/vendor/autoload.php";

$result = Export::instance(__DIR__.'/execl')
    ->setFileName('工作报表')
    ->setColumn(['姓名', '手机'])
    ->setData([
        ['卫青', '19877777777'],
        ['霍去病', '19866666666']
    ])
    ->appendData(['张三', '18767778987'])
    ->appendData(['李四', '18987676544'])
    ->save();