rizky92 / xlswriter-for-laravel
Laravel wrapper package for php ext-xlswriter extension
0.1.2
2025-01-26 12:54 UTC
Requires
- php: ^7.4|^8.0
- ext-xlswriter: ^1.5.0
- illuminate/support: ^7.0|^8.0|^9.0|^10.0
README
Laravel wrapper package for php ext-xlswriter extension.
Requirements
Install
Via composer CLI
composer require rizky92/laravel-xlswriter
Quick start
use Rizky92\Xlswriter\ExcelExport; use App\Models\User; $users = User::all(['id', 'username', 'created_at']); $columnHeaders = ['User ID', 'Username', 'Registration date']; $excel = ExcelExport::make('users.xlsx', 'Sheet 1') ->setBasePath('excel/users') ->setDisk('public') ->setColumnHeaders($columnHeaders) ->setData($users); return $excel->export();
Documentation
TBA
License
MIT