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 Do I Link Static Libraries That Depend on Other Static Libraries? How Do I Link Static Libraries That Depend on Other Static Libraries?

13 Dec 2024

Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...

See all articles