Skip to content

Commit c8cd876

Browse files
Merge pull request #138 from MrYamous/openspout5-support
Document ``OpenSpout`` v5 support
2 parents 1f1267e + 5e0271b commit c8cd876

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

docs/get-started/powergrid-configuration.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,26 @@ Run `powergrid:update`
267267
php artisan powergrid:update
268268
```
269269

270+
### OpenSpout version
271+
272+
Powergrid uses OpenSpout v4 by default, but v5 supports is available since 6.8. In order to configure the package to use this version, you need to update the published configuration file.
273+
274+
```php
275+
// config/livewire-powergrid.php
276+
277+
/*
278+
|--------------------------------------------------------------------------
279+
| Exportable class
280+
|--------------------------------------------------------------------------
281+
|
282+
|
283+
*/
284+
285+
'exportable' => [
286+
'default' => 'openspout_v4',// [!code --]
287+
'default' => 'openspout_v5',// [!code ++]
288+
```
289+
270290
## Advanced Configuration
271291

272292
### Custom Namespace

docs/table-features/exporting-data.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ Here you will find:
88

99
## Install OpenSpout
1010

11-
In order to use the export function, you must install the [OpenSpout package](https://github.com/openspout/openspout) v4.x. To do this run the following command in your terminal:
11+
In order to use the export function, you must install the [OpenSpout package](https://github.com/openspout/openspout). PowerGrid supports OpenSpout v4 and v5, depending on your requirements. To do this run the following command in your terminal:
1212

1313

1414
```bash
15-
composer require openspout/openspout:^4.0
15+
composer require openspout/openspout:^4.0 # or ^5.0
1616
```
1717

18+
In order to use OpenSpout v5, you need to update [Powergrid configuration](/get-started/powergrid-configuration.html#openspout-version).
19+
1820
## Enable Data Export
1921

2022
To enable Data Exporting, follow the steps described below.

0 commit comments

Comments
 (0)