文件名称:操作Excel文档的PHP库.zip
文件大小:71KB
文件格式:ZIP
更新时间:2022-07-31 03:50:37
类库下载-操作Excel文档的PHP库
操作Excel文档的PHP库,可以插入文本,文本符,分页,页眉/页脚,表格,列表中的元素,超链接等等。PHPExcel配有十几个实际例子可以作为开发参考,而且配有对应的中文文档,使用起来相当方便<?php namespace ExcelAnt\Style; use ExcelAnt\Style\StyleTestCase, ExcelAnt\Style\Alignment; class AlignmentTest extends StyleTestCase { public function testSetVerticalWithWrongParameter($param) { $alignment = (new Alignment())->setVertical($param); } public function testSetAndGetVertical() { $alignment = (new Alignment())->setVertical(Alignment::VERTICAL_BOTTOM); $this->assertEquals(Alignment::VERTICAL_BOTTOM, $alignment->getVertical()); } public function testSetHorizontalWithWrongParameter($param) { $alignment = (new Alignment())->setHorizontal($param); } public function testSetAndGetHorizontal() { $alignment = (new Alignment())->setHorizontal(Alignment::HORIZONTAL_LEFT); $this->assertEquals(Alignment::HORIZONTAL_LEFT, $alignment->getHorizontal()); } }
【文件预览】:
ExcelAnt-master
----composer.json(644B)
----.travis.yml(1KB)
----features()
--------php-excel()
--------bootstrap()
----docs()
--------simple-table.png(10KB)
--------.gitkeep(0B)
----test()
--------bootstrap.php(223B)
--------ExcelAnt()
----LICENSE.md(1KB)
----.gitignore(50B)
----.travis()
--------phpunit.xml(566B)
----lib()
--------ExcelAnt()
----phpunit.xml.dist(584B)
----README.md(2KB)