codebreaker / 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
1.0.0
2020-08-28 20:25 UTC
This package is auto-updated.
Last update: 2024-10-29 06:00:05 UTC
README
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