Download the PHP package softwarepunt/php-delegate-b2b-dgxml without Composer
On this page you can find all versions of the php package softwarepunt/php-delegate-b2b-dgxml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download softwarepunt/php-delegate-b2b-dgxml
More information about softwarepunt/php-delegate-b2b-dgxml
Files in softwarepunt/php-delegate-b2b-dgxml
Package php-delegate-b2b-dgxml
Short Description PHP Library for working with Delegate Group B2B XML files (DGXML)
License MIT
Informations about the package php-delegate-b2b-dgxml
php-delegate-b2b-dgxml
PHP Library for working with Delegate Group B2B XML files (DGXML).
👉 Currently only supports exporting the Article-/Price Catalog to Delegate DGXML format.
Installation
Requirements
- PHP 8.0+
- with extension: dom, intl
- Composer
Setup
Use Composer to add the package as a dependency to your project:
Usage
Creating a catalog
Using this library, you can build the catalog by simply assigning PHP objects and values. The structure and property names match the XML and documentation. Each property is type-hinted and contains phpdocs based on the official documentation.
📕 To best understand the structure of the catalog, refer to the official documentation (ArticleCatalog DGXML 1.0_EN
).
Create a new ProductCatalog
and assign items to it, then export it as XML:
Notes
- All text values are automatically transliterated to ASCII-only. This solves issues in the Delegate import process, but means special characters cannot be properly represented in the catalogs.
- You must ensure
GTIN
/GTINOrderUnit
item values can be parsed as a 64-bit integer, or the Delegate software will fail to import the catalog!
All versions of php-delegate-b2b-dgxml with dependencies
ext-dom Version *
ext-intl Version *