Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 982 Bytes

File metadata and controls

38 lines (28 loc) · 982 Bytes

SimpleConvert

SimpleConvert is a library written in pure PHP and providing a set of functions that allow you to export your data into EXCEL (.xls). This library providing you to download (.xls) file and view data in the browser.

Installation


Use the package manager composer to install SimpleConvert.

composer require codebreaker/simpleconvert

Usage


require_once './vendor/autoload.php';
$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

Author

License

MIT