PHP code example of rogeriopradoj / php-excel

1. Go to this page and download the library: Download rogeriopradoj/php-excel 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/ */

    

rogeriopradoj / php-excel example snippets



$mydata = array(array(1 => 'Oliver Schwarz', 'Friedhelm Hasematzel'));
$xls = new Excel_XML;
$xls->addWorksheet('My data', $mydata);
$xls->sendWorkbook('mydata.xls');