PHP code example of infostreams / excel-merge

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

    

infostreams / excel-merge example snippets


            $files = array("sheet_with_vba_code.xlsm", "generated_file.xlsx", "tmp/third_file.xlsx");
      
      $merged = new ExcelMerge\ExcelMerge($files);            
      $merged->download("my-filename.xlsm");
      
      // or
      
      $filename = $merged->save("my-directory/my-filename.xlsm");