Skip to content

Commit 700e826

Browse files
authored
Merge pull request #20 from hpacleb/migrate-to-openspoutv3
Migrate to OpenSpout v3
2 parents 253eacd + 0a488ad commit 700e826

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
[![Total Downloads](https://img.shields.io/packagist/dt/yajra/laravel-datatables-export.svg)](https://packagist.org/packages/yajra/laravel-datatables-export)
77
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-export)
88

9-
This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for handling server-side exporting using Queue, Spout and Livewire.
9+
This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for handling server-side exporting using Queue, OpenSpout and Livewire.
1010

1111
## Requirements
1212

1313
- [PHP >=7.4](http://php.net/)
1414
- [Laravel 8+](https://github.com/laravel/framework)
1515
- [Laravel Livewire](https://laravel-livewire.com/)
16-
- [Spout](https://github.com/box/spout)
16+
- [OpenSpout](https://github.com/openspout/openspout/)
1717
- [Laravel DataTables 9.x](https://github.com/yajra/laravel-datatables)
1818
- [jQuery DataTables v1.10.x](http://datatables.net/)
1919

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"yajra/laravel-datatables-buttons": "4.*|9.*",
2222
"yajra/laravel-datatables-html": "^4.40|9.*",
2323
"livewire/livewire": "2.*|3.*",
24-
"box/spout": "^3.3"
24+
"openspout/openspout": "^3"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^9.5.9"

src/Jobs/DataTableExportJob.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Yajra\DataTables\Jobs;
44

5-
use Box\Spout\Common\Helper\CellTypeHelper;
6-
use Box\Spout\Common\Type;
7-
use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;
8-
use Box\Spout\Writer\Common\Creator\WriterEntityFactory;
5+
use OpenSpout\Common\Helper\CellTypeHelper;
6+
use OpenSpout\Common\Type;
7+
use OpenSpout\Writer\Common\Creator\Style\StyleBuilder;
8+
use OpenSpout\Writer\Common\Creator\WriterEntityFactory;
99
use Carbon\Carbon;
1010
use Illuminate\Bus\Batchable;
1111
use Illuminate\Bus\Queueable;
@@ -56,9 +56,9 @@ public function __construct(array $dataTable, array $request, $user = null)
5656
* Execute the job.
5757
*
5858
* @return void
59-
* @throws \Box\Spout\Common\Exception\IOException
60-
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
61-
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException
59+
* @throws \OpenSpout\Common\Exception\IOException
60+
* @throws \OpenSpout\Common\Exception\UnsupportedTypeException
61+
* @throws \OpenSpout\Writer\Exception\WriterNotOpenedException
6262
*/
6363
public function handle()
6464
{

0 commit comments

Comments
 (0)