rajwebsoft / xlsreader
Read the content from the xls file in object and array
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rajwebsoft/xlsreader
This package is auto-updated.
Last update: 2025-09-18 21:02:22 UTC
README
Read the Xlsx file in laravel easy with the array object
composer require rajwebsoft/xlsreader
Add the code in config/app.php
'providers' => [
....
Rajwebsoft\Xlsreader\XlsreaderServiceProvider::class,
]
Use in controller
use Rajwebsoft\Xlsreader\Xlsreader;
$objdata =new Xlsreader();
$xlsobj = $objdata->readFile("itf_example.xlxs");
$sheetNames = $xlsobj->getSheetNames();
$sheetdata=$xlsobj->getSheetData($sheetNames[1]);
$requestcontact = $xlsobj->getDataObject($sheetdata);
Output
[{
"name"=>"raj Kumar",
"phone"=>"9090909090",
},
{
"name"=>"rahul Kumar",
"phone"=>"8787878788",
}]
Now you can enjoy the package and your suggetion is welcome for any issue