PHP code example of codebreaker / simpleconvert

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

    

codebreaker / simpleconvert example snippets



$var = (object) [
  "result" => $response, # Fetch Object e.g., $response = $con->query($query); 
];
$convert = new \SimpleConvert\SimpleConvert($var); # Pass Argument Must Be Object

$convert->xls('filename.xls',true); # filename and download

$convert->xls(); # view in browser