PHP library for operating Excel documents, you can insert text, text symbols, paging, headers/footers, tables, elements in lists, hyperlinks, etc. PHPExcel is equipped with more than a dozen practical examples that can be used as development references, and is equipped with corresponding Chinese documents, which is very convenient to use
<?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()); } }
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
08Aug2016
:This article mainly introduces the phpExcel extension library for php excel file export. Students who are interested in PHP tutorials can refer to it.
13Jul2016
PHP-ExcelReader: PHP class library for parsing excel files. PHP-ExcelReader: PHP class library for parsing excel files. PHP-ExcelReader is an open source project based on PHP. Its function is to parse excel files. The official website of PHP-ExcelReader is as follows:
01Jun2018
This article mainly introduces the usage of the class library for exporting excel data in PHP, and analyzes the related implementation skills of reading and exporting Excel data in PHP in the form of examples. Friends in need can refer to the following
20Dec2016
This article mainly introduces the usage of the class library for exporting excel data in PHP, and analyzes the related implementation skills of reading and exporting Excel data in PHP in the form of examples. Friends in need can refer to the following
31May2018
This article mainly introduces the usage of the class library for exporting excel data in PHP, and analyzes the related implementation skills of reading and exporting Excel data in PHP in the form of examples. Friends in need can refer to the following
03Jun2023
Third-party class libraries Third-party class libraries refer to other class libraries besides the ThinkPHP framework and application project class libraries. They are generally provided by third-party systems or products, such as class libraries of Smarty, Zend and other systems. For the class libraries imported earlier using automatic loading or the import method, the ThinkPHP convention is to use .class.php as the suffix. Non-such suffixes need to be controlled through the import parameters. But for the third type of library, since there is no such agreement, its suffix can only be considered to be php. In order to easily introduce class libraries from other frameworks and systems, ThinkPHP specifically provides the function of importing third-party class libraries. Third-party class libraries are uniformly placed in the ThinkPHP system directory/
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images