Skip to content
Open

2.x #34

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
# EASY EXCEL

<p>
<a href="https://github.com/jqhph/easy-excel/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-7389D8.svg?style=flat" ></a>
<a href="https://github.com/yzh52521/easy-excel/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-7389D8.svg?style=flat" ></a>
<a href="https://styleci.io/repos/215738797">
<img src="https://github.styleci.io/repos/215738797/shield" alt="StyleCI">
</a>
<a href="https://github.com/jqhph/easy-excel/releases" ><img src="https://img.shields.io/github/release/jqhph/easy-excel.svg?color=4099DE" /></a>
<a href="https://packagist.org/packages/dcat/easy-excel"><img src="https://img.shields.io/packagist/dt/dcat/easy-excel.svg?color=" /></a>
<a><img src="https://img.shields.io/badge/php-7.1+-59a9f8.svg?style=flat" /></a>
<a href="https://github.com/yzh52521/easy-excel/releases" ><img src="https://img.shields.io/github/release/yzh52521/easy-excel.svg?color=4099DE" /></a>
<a href="https://packagist.org/packages/yzh52521/easy-excel"><img src="https://img.shields.io/packagist/dt/yzh52521/easy-excel.svg?color=" /></a>
<a><img src="https://img.shields.io/badge/php-8.2+-59a9f8.svg?style=flat" /></a>
</p>

</div>

`Easy Excel`是一个基于 <a href="https://github.com/box/spout" target="_blank">box/spout</a> 封装的Excel读写工具,可以帮助开发者更快速更轻松地读写Excel文件,
`Easy Excel`是一个基于 <a href="https://github.com/openspout/openspout" target="_blank">openspout/openspout</a> 封装的Excel读写工具,可以帮助开发者更快速更轻松地读写Excel文件,
并且无论读取多大的文件只需占用极少的内存。

> 由于`box/spout`只支持读写`xlsx`、`csv`、`ods`等类型文件,所以本项目目前也仅支持读写这三种类型的文件。
> 由于`openspout/openspout`只支持读写`xlsx`、`csv`、`ods`等类型文件,所以本项目目前也仅支持读写这三种类型的文件。


## 文档
Expand All @@ -26,17 +26,17 @@

## 环境

- PHP >= 7.1
- PHP >= 8.2
- PHP extension php_zip
- PHP extension php_xmlreader
- box/spout >= 3.0
- league/flysystem >= 1.0
- openspout/openspout >= 4.0
- league/flysystem >= 3.0


## 安装

```bash
composer require dcat/easy-excel
composer require yzh52521/easy-excel
```

### 快速开始
Expand Down Expand Up @@ -83,6 +83,16 @@ $adapter = new Local(__DIR__);
$filesystem = new Filesystem($adapter);

Excel::export($array)->disk($filesystem)->store('users.xlsx');


// 使用yzh52521/think-filesystem

Excel::export($array)->disk('local')->store('users.xlsx');
// 也可以
$filesystem = \yzh52521\filesystem\facade\Filesystem::disk('local')->getDriver();
Excel::export('users.xlsx')->disk($filesystem)->store('users.xlsx');


```

获取文件内容
Expand Down
18 changes: 10 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "dcat/easy-excel",
"name": "yzh52521/easy-excel",
"description": "使用简单实用的语义化接口快速读写Excel文件",
"type": "library",
"keywords": [
"box spout",
"openspout",
"read",
"easy excel",
"csv",
Expand All @@ -15,20 +16,21 @@
"stream"
],
"license": "MIT",
"homepage": "https://github.com/jqhph/easy-excel",
"homepage": "https://github.com/yzh52521/easy-excel",
"authors": [
{
"name": "jqh",
"email": "841324345@qq.com"
"name": "yzh52521",
"email": "396751927@qq.com"
}
],
"require": {
"php": ">=7.1.0",
"box/spout": "~3",
"league/flysystem": "~1|~2|~3"
"php": "^8.2",
"openspout/openspout": "^4",
"league/flysystem": "^3",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "~7|~8.0",
"phpunit/phpunit": "^8.0",
"friendsofphp/php-cs-fixer": "^2"
},
"autoload": {
Expand Down
Loading