Download the PHP package denisok94/symfony-export-xlsx without Composer
On this page you can find all versions of the php package denisok94/symfony-export-xlsx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download denisok94/symfony-export-xlsx
More information about denisok94/symfony-export-xlsx
Files in denisok94/symfony-export-xlsx
Download denisok94/symfony-export-xlsx
More information about denisok94/symfony-export-xlsx
Files in denisok94/symfony-export-xlsx
Vendor denisok94
Package symfony-export-xlsx
Short Description Symfony export for excel(.xlsx)
License MIT
Package symfony-export-xlsx
Short Description Symfony export for excel(.xlsx)
License MIT
Please rate this library. Is it a good library?
Informations about the package symfony-export-xlsx
Symfony export xlsx
The main idea is taken from XlsxWriter.php.
Except:
- PHPOffice\PHPExcel has been replaced with PHPOffice\PhpSpreadsheet;
- The class is used as a service to be able to use it anywhere and make changes to the file.
- The
XlsxServiceclass is completely independent and can be used outside of Symfony.
- Install
- Use XlsxService
- Customization
- Use in SonataAdmin Export
- Errors
Install
Use XlsxService
| Method | Parameters | Return | Description |
|---|---|---|---|
| setFile() | string | self | - |
| setDateTimeFormat() | string | self | - |
| open() | - | - | - |
| write() | array | - | - |
| close() | - | - | - |
Customization
| Method | Return | Official Documentation |
|---|---|---|
| getProperties() | Class Properties | PhpSpreadsheet-Document-Properties |
| getSpreadsheet() | Class Spreadsheet | PhpSpreadsheet-Document-Spreadsheet |
| getActiveSheet() | Class Worksheet | PhpSpreadsheet-Document-ActiveSheet |
Table class
Use in SonataAdmin Export
Install if missing SonataExporterBundle
Minimum version doctrine/orm: 2.8
add in config:
add in YourAdmin class according to the documentation:
and if you need to configure the fields and their translation
Errors
If you see the error:
Then make sure that the doctrine/orm version is 2.8 or higher.
You may need to update:
- sonata-project/admin-bundle: ~
3.* - sonata-project/doctrine-orm-admin-bundle: ~
3.* - doctrine/doctrine-bundle: ~
^2.3
All versions of symfony-export-xlsx with dependencies
PHP Build Version
Package Version
The package denisok94/symfony-export-xlsx contains the following files
Loading the files please wait ...