Download the PHP package findologic/libflexport without Composer
On this page you can find all versions of the php package findologic/libflexport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download findologic/libflexport
More information about findologic/libflexport
Files in findologic/libflexport
Package libflexport
Short Description FINDOLOGIC export toolkit for XML and CSV data export
License MIT
Homepage https://github.com/findologic/libflexport
Informations about the package libflexport
FINDOLOGIC export toolkit
Table of Contents
- Synopsis
- Export recommendation
- Limitations
- Basic usage
- Setup
- XML Export
- CSV Export
- Examples
- Compatibility
- Contributors
Synopsis
This project provides an export library for XML and CSV generation according to the FINDOLOGIC export patterns.
- XML https://docs.findologic.com/doku.php?id=xml_export_documentation:XML_2_format
- CSV https://docs.findologic.com/doku.php?id=csv_export_documentation:csv_2_format
- Note that CSV support is still relatively new. Consider it beta-quality.
Export recommendation
Using the XML export is recommended by FINDOLOGIC. The XML is easier to read and has some advantages over the CSV export like:
- No encoding issues as the encoding attribute is provided in the XML response
<?xml version="1.0" encoding="UTF-8"?>
. - Validation is more reliable.
- Simple escaping of content using the
<![CDATA[...]]>
-tag. - Standardized structure.
- Dynamically extract the products from the database via
start
andcount
parameter in the url. - No limited file size for XML because of pagination.
- Using multiple groups per product.
The key advantage for CSV is that it is possible to use way more groups than for XML. On the other hand:
- Groups only regulate visibility - it's not possible to show different values per group.
- The format is prone to encoding issues if non-UTF-8 data is fed into it.
- Total export size is limited by file size, while XML pagination theoretically allows exports of arbitrary size.
Limitations
Currently, only input text encoded in UTF-8 is supported. To use this library with other types of encoding, one of the following is necessary:
- Convert all text to UTF-8 prior to passing it to
libflexport
. - Use the XML exporter and modify the library to change the XML header to contain the required encoding.
- FINDOLOGIC is capable of handling most encodings, but only with XML.
Basic usage
Setup
- Include as composer dependency using
composer require findologic/libflexport
- Load
./vendor/autoload.php
into the project
XML export
CSV export
Examples
For more specific examples, please have a look at the examples directory.
Compatibility
The status of the major versions of libflexport is outlined below. Version numbers generally follow semantic versioning principles.
Version | Branch | PHP support | Receives bug fixes | Receives enhancements | End of life |
---|---|---|---|---|---|
3.X | develop | >=8.1 | :heavy_check_mark: | :heavy_check_mark: | Not in the foreseeable future |
2.X | 2.x | >=7.1 | :heavy_check_mark: | :x: | Not in the foreseeable future |
1.X | 1.x | 5.6 - 7.3 | :heavy_check_mark: | :x: | TBD |
0.X | :x: | 5.6 - 7.0 | :x: | :x: | 2017-11-24 |
All versions will most likely remain available for as long as the infrastructure to do so exists.
Contributors
See contribution guide.
All versions of libflexport with dependencies
ext-dom Version *
ext-mbstring Version *
findologic/xml-export-schema Version ^v2.2.0