bingher/export_table

export data list to excel xlsx

0.0.1 2023-08-11 09:37 UTC

This package is auto-updated.

Last update: 2024-05-11 11:07:32 UTC


README

usage

$data = [
    [
        'id' => 1,
        'name' => 'Jon',
        'age' => 18,
        'header' => './upload/1.jpg',
    ],
    [
        'id' => 2,
        'name' => 'Lucy',
        'age' => 16,
        'header' => './upload/2.jpg',
    ],
];
$headers = ['ID','姓名','年龄','头像'];
$et = new Bingher\ExportTable\ExportTable;
$et->data($data,$headers)->output();