Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leeqvip/php-excel
一个在PHP中简单且优雅的导入和导出Excel的扩展包
https://github.com/leeqvip/php-excel
csv excel-export excel-import php phpexcel phpoffice thinkphp
Last synced: 3 months ago
JSON representation
一个在PHP中简单且优雅的导入和导出Excel的扩展包
- Host: GitHub
- URL: https://github.com/leeqvip/php-excel
- Owner: leeqvip
- License: apache-2.0
- Created: 2018-11-22T02:58:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T15:15:26.000Z (about 6 years ago)
- Last Synced: 2024-08-21T16:37:20.928Z (5 months ago)
- Topics: csv, excel-export, excel-import, php, phpexcel, phpoffice, thinkphp
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP-Excel
====一个基于[PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet)的拓展包,简化了Excel的导出和导入。
## 安装
通过`composer`安装这个扩展:
```
composer require techone/php-excel
```## 快速开始
创建一个导出类:
```php
use TechOne\Excel\Concerns\FromArray;
class UsersExport implements FromArray
{
public function array()
{
return [
[1, 2, 3],
[1, 2, 3]
];
}
}```
可以这样调用:
```php
Excel::download(new UsersExport(), 'data.xlsx');
```## 协议
PHP-Excel采用 [Apache 2.0 license](LICENSE) 开源协议发布。
## 联系
有问题请提交 Issues:https://github.com/techoner/php-excel/issues