Home PHP Libraries Other libraries PHP library for manipulating Excel documents
PHP library for manipulating Excel documents

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());
    }
}


Disclaimer

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

phpExcel extension library for php excel file export phpExcel extension library for php excel file export

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.

PHP-ExcelReader: PHP class library for parsing excel files_PHP tutorial PHP-ExcelReader: PHP class library for parsing excel files_PHP tutorial

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:

PHP implements class library usage for exporting excel data PHP implements class library usage for exporting excel data

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

PHP class library usage example for exporting excel data PHP class library usage example for exporting excel data

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

Detailed explanation of class library usage for exporting excel data using PHP Detailed explanation of class library usage for exporting excel data using PHP

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

How to import third-party libraries in ThinkPHP How to import third-party libraries in ThinkPHP

03 Jun 2023

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/

See all articles