SpreadSheet-Coding.com

PhpSpreadsheet

Install PhpSpreadsheet

June 21, 2020

Read and write different spreadsheet file formats using the pure PHP library PhpSpreadsheet.

Requirements:

Simply require PhpSpreadsheet into your composer.json file to install it.

Other required extensions like the ext-gd and ext-mbstring can be found on the require section file on this link.

Step 1.

Setup dependencies.

composer.json
{
    "require": {
        "phpoffice/phpspreadsheet": "^1.3"
    }
}

Step 2.

Install phpspreadsheet.

command line
$ composer install

Test.

Create Xlsx Files
Read Xlsx Files