Download the PHP package basilicom/xml-tool-bundle without Composer
On this page you can find all versions of the php package basilicom/xml-tool-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download basilicom/xml-tool-bundle
More information about basilicom/xml-tool-bundle
Files in basilicom/xml-tool-bundle
Package xml-tool-bundle
Short Description This Bundle provides xml (export) tools for Pimcore.
License GPL-3.0-or-later
Homepage https://basilicom.de
Informations about the package xml-tool-bundle
Basilicom Xml Tool bundle for Pimcore
Adds commands for dealing with XML data. For now, parts of the Object tree can be exported recursively, retaining the hierarchy.
Exports can be triggered by a console command and written to stdout, a file or an pimcore asset.
If enabled, exports can be made available via a REST API, too.
Table of contents
- Basilicom Xml Tool bundle for Pimcore
- License
- Requirements
- Installation
- Configuration
- Console Usage
- Usage: REST API
- Limitations
License
GPLv3 - see: LICENSE
Requirements
- PHP >= 7.1
- Pimcore >= 5.0.0
- XSL PHP extension for --xslt option support
Installation
1) Install the bundle using composer composer require basilicom/xml-tool-bundle dev-master
.
2) Execute bin/console pimcore:bundle:enable BasilicomXmlToolBundle
Configuration
n/a
Console Usage
Use the export command to export command to export the Object tree, example for path :
Example output:
Note: The Object tree contains in the example a single Object of the Object Class with a single Input property of .
Complex example:
- do not export the attributes / fields of objects attached via relations
- export variants of objects, too
- change the name of the root node to 'Products'
- apply a sample xslt
- export to a pimcore asset
Sample XSLT:
For all options (writing to a file, etc.), see:
Usage: REST API
In order to enable the REST API, place a configuration file in :
This example enables two endpoint URLs:
- https://PIMCORE-SERVER/xml-tool/export/test1?token=secrettoken0815
- https://PIMCORE-SERVER/xml-tool/export/test2
Limitations
Only a few field types are supported for now:
- input
- select
- wysiwyg
- textarea
- date
- datetime
- ManyToManyObjectRelation
- color
- rgbaColor
- localizedFields
To extend the supported types, implement a method in .