Skip to content

leeqvip/php-excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Excel

一个基于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

About

一个在PHP中简单且优雅的导入和导出Excel的扩展包

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages