Download the PHP package ticketpark/htmlphpexcel without Composer
On this page you can find all versions of the php package ticketpark/htmlphpexcel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ticketpark/htmlphpexcel
More information about ticketpark/htmlphpexcel
Files in ticketpark/htmlphpexcel
Package htmlphpexcel
Short Description A php library to convert html tables to Excel files, including styling.
License MIT
Homepage https://github.com/Ticketpark/HtmlPhpExcel
Informations about the package htmlphpexcel
HtmlPhpExcel
This is a php library based on FastExcelWriter, simplifying converting html tables to excel files. It allows styling right within the html template with specific attributes.
Installation
Add HtmlPhpExcel to your composer.json:
Simple example
For a more complex example see example directory.
Styling
Styles are set with an html attribute _excel-styles
. The attribute expects the content to be in json format.
Example:
You can use any style supported by fast-excel-writer
, of which the most common are:
- border-color
- border-style
- fill-color
- fill-pattern
- font-color
- font-size
- format
- format-text-wrap
- height
- hyperlink
- text-align
- text-color
- text-rotation
- text-wrap
- vertical-align
- width
More information (though unfortunately limited) is available in the docs of FastExcelWriter.
Adding links to cells
Links are treated like styles and added with the hyperlink
key:
Example:
Adding comments to cells
To add comments, use the _excel-comment
attribute.
Example:
History
- v2.x of this library is based on
FastExcelWriter
- v1.x of this library was based on
PhpSpreadsheet
- v0.x of this library was based on
PhpExcel
All versions of htmlphpexcel with dependencies
ext-json Version *
ext-dom Version *
ext-intl Version *
avadim/fast-excel-helper Version ^1.0.4
avadim/fast-excel-writer Version ^4.5|^5.0