PHP code example of adnzaki / excel-creator

1. Go to this page and download the library: Download adnzaki/excel-creator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adnzaki / excel-creator example snippets



$excel = new ExcelCreator();

$columns = ['A', 'B', 'C'];
$excel->setMultipleColumnsWidth($columns, 12);

or

$excel->setMultipleColumnsWidth($columns); // will create auto size for those columns

$excel->setMultipleRowsHeight(['1' => 40, '2' => 30 '3-6' => 20]);