Library or plugin for excel import export
I want to install plugin in laravel 5.6
any other?
Laravel Excel 3.0 has limited resources in it.
i use Laravel Excel 2.1
but i want to install/add latests verion of any excel plugin in my laravel 5.6
League CSV is also good: https://csv.thephpleague.com/
The csv format is often used for data import/export and can be opened in Excel, even though it's technically not an Excel file (as in xls/xlsx).
@Nash are you sure?
are you sure?
@ekhlas About what? Yes, the package is good, I have used it many times. Excel and many other programs support the CSV file format (many users probably don't even know the difference since Excel is usually the default program for opening CSV files) and many applications allow CSV import/export for their data (some have both csv and xls). If you have trouble with formatting, just make sure that you are using the right delimiter (usually comma or semicolon).
https://csv.thephpleague.com/ i do read it . @Nash it is not laravel package i think
@ekhlas It's not made specifically for Laravel, but it can be installed with composer and used with Laravel just like any other PHP package.
composer require league/csv:^9.0
use League\Csv\Reader;
use League\Csv\Writer;
I dont want to use any core package in my larvel app
You know that Laravel itself mainly does the exact same thing? ;)
Otherwise, write a wrapper, name the package laravel-XY and you're done.
...
This is how you'd use any PHP package with Laravel (or any other framework that uses composer)? Some are more "meant for Laravel" than others because they make use of some Laravel specific functionality to make it easier for Laravel developers to use or because they themselves use Laravel and the package just won't work outside the framework. You can easily add a service provider and a facade if you want to.
Please or to participate in this conversation.