Download the PHP package b13/format without Composer
On this page you can find all versions of the php package b13/format. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package format
TYPO3 Extension format
[!CAUTION] This TYPO3 Extension will not be maintained by b13 any further starting January 2025. So, you're on your own using this extension.
Why?
This extension was initially created back when TYPO3 v4 was hip and cool. However, we've experienced in the past years, that we've utilized composer-based packages directly for solving these problems, when they are needed. We don't need "one-fits-it-all" solution.
If you need a CSV file (or output) generated by PHP, copy over the file into your project, or code the 5 lines on your own.
If you need Excel support, utilize the composer package
phpoffice/phpspreadsheet
directly.And if you need PDF creation support - we recommend also to look into solutions you need - some people need wkhtmltopdf, some need mpdf, and others a different requirement.
Utility Extension for putting data in different formats like
- CSV
- Excel
Installation
Simply install the extension with Composer or the Extension Manager. Include the TypoScript if you want to use the PDF generation.
Usage
CSV
Use the public API of the CsvService
to generate a CSV file or output the CSV string directly.
Excel
There is no wrapper functionality to help with the creation of excel files. However the library
phpoffice/phpspreadsheet
is required as a composer dependency and can therefore be used out of
the box in composer based installations.
The PDF functionality relies on wkhtmltopdf which must be available on the server. There are several ways to provide the binary. Please refer to the wkhtmltopdf documentation.
The extension provides a PdfService. here is an example usage:
This will create a file myPdf.pdf
with the contents of $myHtml
in a directory that can be configured in TypoScript.
The whole TypoScript configuration (constants.typoscript
):
Every setting can be overwritten during runtime:
Sharing our expertise
Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.
All versions of format with dependencies
phpoffice/phpspreadsheet Version ^1.5
php Version ^7.4.0 || ^8.0