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
08 Aug 2016
:This article mainly introduces the phpExcel extension library for php excel file export. Students who are interested in PHP tutorials can refer to it.
13 Jul 2016
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:
01 Jun 2018
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
20 Dec 2016
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
31 May 2018
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
13 Dec 2024
Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...
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