Skip to content

Commit 8e3ccbc

Browse files
committed
update zh-cn doc
1 parent 0018361 commit 8e3ccbc

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed

README_zh.md

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,57 @@
99
[![](https://img.shields.io/badge/license-BSD-green.svg)](https://github.com/viest/php-ext-excel-export)
1010
[![](https://img.shields.io/github/issues/viest/php-ext-excel-export.svg)](https://github.com/viest/php-ext-excel-export)
1111

12-
#### Why use xlswriter
12+
#### 为什么使用xlswriter
1313

14-
Please refer to the image below. PHPExcel has been unable to work properly for memory reasons at 40,000 and 100000 points, but it can be resolved by modifying the ini configuration, but the time may take longer to complete the work;
14+
请参考下方对比图;由于内存原因,PHPExcel数据量`相对较大`的情况下无法正常工作,虽然可以通过`修改memory_limit`配置来解决内存问题,但完成工作的时间可能会更长;
1515

1616
![php-excel](resource/performance_comparison.png)
1717

18-
xlswriter is a PHP C Extension that can be used to write text, numbers, formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file. It supports features such as:
18+
xlswriter是一个 PHP C 扩展,可用于在 Excel 2007+ XLSX 文件中读取数据,插入多个工作表,写入文本、数字、公式、日期、图表、图片和超链接。
1919

20-
* 100% compatible Excel XLSX files.
21-
* Full Excel formatting.
22-
* Merged cells.
23-
* Defined names.
24-
* Autofilters.
25-
* Charts.
26-
* Data validation and drop down lists.
27-
* Worksheet PNG/JPEG images.
28-
* Memory optimization mode for writing large files.
29-
* Works on Linux, FreeBSD, OpenBSD, OS X, Windows.
30-
* Compiles for 32 and 64 bit.
31-
* FreeBSD License.
32-
* The only dependency is on zlib.
20+
它具备以下特性:
3321

34-
#### Benchmark
22+
* 100%兼容的Excel XLSX文件
23+
* 完整的Excel格式
24+
* 合并单元格
25+
* 定义工作表名称
26+
* 过滤器
27+
* 图表
28+
* 数据验证和下拉列表
29+
* 工作表PNG/JPEG图像
30+
* 用于写入大文件的内存优化模式
31+
* 适用于Linux,FreeBSD,OpenBSD,OS X,Windows
32+
* 编译为32位和64位
33+
* FreeBSD许可证
34+
* 唯一的依赖是zlib
3535

36-
Test environment: Macbook Pro 13 inch, Intel Core i5, 16GB 2133MHz LPDDR3 Memory, 128GB SSD Storage.
36+
#### 基准测试
3737

38-
##### Export
38+
测试环境: Macbook Pro 13 inch, Intel Core i5, 16GB 2133MHz LPDDR3 Memory, 128GB SSD Storage.
3939

40-
> Two memory modes export 1 million rows of data (27 columns, data is string)
40+
##### 导出
4141

42-
* Normal mode: only 29S is needed, and the memory only needs 2083MB;
43-
* Fixed memory mode: only need 52S, memory only needs <1MB;
42+
> 两种内存模式导出100万行数据(单行27列,数据类型均为字符串,单个字符串长度为19)
4443
45-
##### Import
44+
* 普通模式:耗时 `29S`,内存只需 `2083MB`
45+
* 固定内存模式:仅需 `52S`,内存仅需 `<1MB`
4646

47-
> 1 million rows of data (1 columns, data is inter)
47+
##### 导入
4848

49-
* Full mode: Just 3S, the memory is only 558MB;
50-
* Cursor mode: Just 2.8S, memory is only <1MB;
49+
> 100万行数据(单行1列,数据类型为INT)
5150
52-
#### Documents
51+
* 全量模式:耗时 `3S`,内存仅 `558MB`
52+
* 游标模式:耗时 `2.8S`,内存仅 `<1MB`
53+
54+
#### 从这里开始
5355

5456
[文档|Documents](https://xlswriter-docs.viest.me/)
5557

56-
#### PECL Repository
58+
#### PECL 仓库
5759

5860
[![pecl](resource/pecl.png)](https://pecl.php.net/package/xlswriter)
5961

60-
#### Exchange group
62+
#### 交流群
6163

6264
<img width="160" src="resource/qq.jpg"/>
6365

0 commit comments

Comments
 (0)