Download the PHP package ang3/php-excel-encoder without Composer
On this page you can find all versions of the php package ang3/php-excel-encoder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ang3/php-excel-encoder
More information about ang3/php-excel-encoder
Files in ang3/php-excel-encoder
Package php-excel-encoder
Short Description PHP Excel encoder
License MIT
Homepage https://github.com/Ang3/php-excel-encoder
Informations about the package php-excel-encoder
PHP Excel encoder
Encode and decode xls/xlsx files and more thanks to the component phpoffice/phpspreadsheet.
Also, this component uses the component Serializer from package - Please read the documentation for more information about serializer usage.
Summary
- Installation
- Upgrade
- Usage
- Symfony integration
- Run tests
Installation
Open a command console and execute the following command to download the latest stable version of this bundle:
If you install this component outside of a Symfony application, you must require the vendor/autoload.php file in your code to enable the class autoloading mechanism provided by Composer. Read this article for more details.
Upgrade
To upgrade from 1.x to 2.x or from 2.x to 3.x, please read the file UPGRADE-2.0.md.
Usage
Create encoder
Context parameters:
- (boolean): Load data as collection [default: ]
- (string): separator for flattened entries key [default: ]
- (boolean): put headers in bold (encoding only) [default: ]
- (string): put headers in bold (encoding only: , or ) [default: ]
- (boolean): column autosize feature (encoding only) [default: ]
- (integer): column maxsize feature (encoding only) [default: ]
Encoding
Accepted formats:
Decoding
Accepted formats:
Headers
By default, the encoder loads data as collection: the header name is the key of each data. Indeed, the default value of context parameter is . To disable this feature, pass the context parameter as .
Symfony integration
The encoder implements the interfaces of the Serializer component. To enable this encoder, you could just
configure it as service by adding the contents below into the file config/services.yaml
:
Run tests
That's it!
All versions of php-excel-encoder with dependencies
phpoffice/phpspreadsheet Version ^1.16
symfony/serializer Version ^6.0
symfony/filesystem Version ^6.0