Download the PHP package yectep/phpspreadsheet-bundle without Composer
On this page you can find all versions of the php package yectep/phpspreadsheet-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yectep/phpspreadsheet-bundle
More information about yectep/phpspreadsheet-bundle
Files in yectep/phpspreadsheet-bundle
Package phpspreadsheet-bundle
Short Description A Symfony bundle to integrate with PHPOffice's PhpSpreadsheet library
License MIT
Informations about the package phpspreadsheet-bundle
PhpSpreadsheetBundle
This bundle integrates your Symfony 4/5/6/7 app with the PHPOffice PhpSpreadsheet productivity library.
Requirements
This bundle requires, in addition to prerequisites of each PHPOffice library:
* PHP 7.2 or higher
* Symfony 4 or higher
Note: Tags older than v1.0.0 (e.g. v0.2.0) are no longer supported due to deprecated status for both PHP <= 7.1 and Symfony <= 4.4.
Installation
Use composer to require the latest stable version.
`
If you're not using Flex, enable the bundle in your AppKernel.php or bundles.php file.
``
Usage
This bundle enables the phpoffice.spreadsheet service.
See also the official PHPOffice PhpSpreadsheet documentation.
createSpreadsheet()
Creates an empty \PhpOffice\PhpSpreadsheet\Spreadsheet object, or, if an optional
$filename is passed, instantiates the \PhpOffice\PhpSpreadsheet\IOFactory to
automatically detect and use the appropriate IWriter class to read the file.
``
createReader(string $type)
Returns an instance of the \PhpOffice\PhpSpreadsheet\Reader class of the given $type.
Types are case sensitive. Supported types are:
Xlsx: Excel 2007Xls: Excel 5/BIFF (95)Xml: Excel 2003 XMLSlk: Symbolic Link (SYLK)Ods: Open/Libre Office (ODS)Csv: CSVHtml: HTML
``
createWriter(Spreadsheet $spreadsheet, string $type)
Given a \PhpOffice\PhpSpreadsheet\Spreadsheet object and a writer $type, returns
an instance of a \PhpOffice\PhpSpreadsheet\Writer class for that type.
In addition the the read types above, these types are additionally supported for writing, if the appropriate PHP libraries are installed.
TcpdfMpdfDompdf
``
Roadmap and Contributions
Contributions are more than welcome. Fork the project, and submit a PR when you're done.
Remaining todos include:
- Tests and test coverage
- TravisCI
- Improved documentation
Symfony serializer
If you are migrating from Symfony Serializer component + CSV encoder - you can use code like
All versions of phpspreadsheet-bundle with dependencies
phpoffice/phpspreadsheet Version ~1.16
symfony/framework-bundle Version ^4.0|^5.0|^6.0|^7.0