PHPackages                             softwarepunt/php-delegate-b2b-dgxml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. softwarepunt/php-delegate-b2b-dgxml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

softwarepunt/php-delegate-b2b-dgxml
===================================

PHP Library for working with Delegate Group B2B XML files (DGXML)

v1.1.0(4y ago)1125MITPHPPHP &gt;=8.0

Since Jul 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SoftwarePunt/php-delegate-b2b-dgxml)[ Packagist](https://packagist.org/packages/softwarepunt/php-delegate-b2b-dgxml)[ RSS](/packages/softwarepunt-php-delegate-b2b-dgxml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

php-delegate-b2b-dgxml
======================

[](#php-delegate-b2b-dgxml)

**PHP Library for working with Delegate Group B2B XML files (DGXML)**.

[![PHPUnit](https://github.com/SoftwarePunt/php-delegate-b2b-dgxml/actions/workflows/phpunit.yml/badge.svg)](https://github.com/SoftwarePunt/php-delegate-b2b-dgxml/actions/workflows/phpunit.yml)[![Version](https://camo.githubusercontent.com/14c2ace396abe4d5e4d9c342e392b9157409427075140298d3637eb79dd07c7c/687474703a2f2f706f7365722e707567782e6f72672f736f66747761726570756e742f7068702d64656c65676174652d6232622d6467786d6c2f76657273696f6e)](https://packagist.org/packages/softwarepunt/php-delegate-b2b-dgxml)

👉 Currently only supports exporting the Article-/Price Catalog to Delegate DGXML format.

Installation
------------

[](#installation)

### Requirements

[](#requirements)

- PHP 8.0+
    - with extension: dom, intl
- [Composer](https://getcomposer.org/)

### Setup

[](#setup)

Use Composer to add the package as a dependency to your project:

```
composer require softwarepunt/php-delegate-b2b-dgxml
```

Usage
-----

[](#usage)

### Creating a catalog

[](#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:

```
