PHPackages                             se/opentrans-bundle - 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. se/opentrans-bundle

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

se/opentrans-bundle
===================

This bundle integrates the opentrans library into Symfony2. Allows to create OpenTRANS compatible documents from PHP.

v0.1.5(5y ago)31894MITPHPPHP &gt;=5.3.3

Since Oct 28Pushed 5y ago2 watchersCompare

[ Source](https://github.com/sveneisenschmidt/opentrans-bundle)[ Packagist](https://packagist.org/packages/se/opentrans-bundle)[ Docs](https://github.com/sveneisenschmidt/opentrans-bundle)[ RSS](/packages/se-opentrans-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (3)Versions (9)Used By (0)

OpenTransBundle
===============

[](#opentransbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/4c212bc1bb67bc5b251fd4e56a5e43ba44ae7faa7ac8c2151e8e88b1b313a3f3/68747470733a2f2f706f7365722e707567782e6f72672f73652f6f70656e7472616e732d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/se/opentrans-bundle)[![SensioLabsInsight](https://camo.githubusercontent.com/4f86adeaf174ee8ba84375dc1be85b6afd731427c9e7403fde0711dd6885eef0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34313631613633312d643730362d343538642d623934652d6435346262353435663066382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4161a631-d706-458d-b94e-d54bb545f0f8)

This bundle integrates the \[opentrans\] () library into Symfony2.

#### Dev branch is master branch.

[](#dev-branch-is-master-branch)

[![Build Status](https://camo.githubusercontent.com/3816cfcb2e259a1d2ad0a88957ba071db61ea61828870ba292c864221e203eea/68747470733a2f2f6170692e7472617669732d63692e6f72672f7376656e656973656e7363686d6964742f6f70656e7472616e732d62756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/svenseisenschmidt/opentrans-bundle)

##### Table of Contents

[](#table-of-contents)

[Installation](#installation)

[Configuration](#configuration)

[Usage](#usage)

[Tests](#tests)

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

[](#installation)

The recommended way to install is through [Composer](http://getcomposer.org).

```
{
    "require": {
        "se/opentrans-bundle": "dev-master"
    }
}
```

Add the bundle to your AppKernel.php file:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new SE\Bundle\OpenTransBundle\SEOpenTransBundle(),
    // ...
);
```

Configuration
-------------

[](#configuration)

You can declare default documents in your app configuration. (i.e. app/config/config.yml)

```
se_open_trans:

  documents:

    my_default_order_document:
      type: order
      document:
        header:
          control_info:
            generator_info: "My Order Document"

    my_default_order_document_2:
      type: order
      document:
        header:
          control_info:
            generator_info: "My Order Document 2"
          order_info:
            custom_key: custom_var
            my_shop_id: Magento_1702
```

Usage
-----

[](#usage)

Your configured document builder is available as a member in `se.opentrans.document_builder_manager` service. Retrieve it by calling `$manager->getDocumentBuilder($documentName)`.

```
$manager = $container->get('se.opentrans.document_builder_manager');
$builder = $manager->getDocumentBuilder('my_default_order_document');
$document = $builder->getDocument();
```

The document builder is created as a service aswell. So instead calling the document builder manager you can directly load the document builder from the container. The name is consisting of the base key `se.opentrans.document_builder.`plus the `se_open_trans.documents` key from your configuration. (i.e. `my_default_order_document`)

```
$builder = $container->get('se.opentrans.document_builder.my_default_order_document');
$document = $builder->getDocument();
```

### Run tests

[](#run-tests)

```
$> vendor/bin/phpunit
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~425 days

Recently: every ~633 days

Total

7

Last Release

2030d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d10b5597487e04e0a3a673775a4aef48e6bf1d07712c0024dc2671f844648805?d=identicon)[sveneisenschmidt](/maintainers/sveneisenschmidt)

![](https://www.gravatar.com/avatar/1e028b1f17979065ff7309cc22ed47fe8f72a9fd61cb2bad2e5aff527ce3ff83?d=identicon)[jkahnt](/maintainers/jkahnt)

---

Top Contributors

[![sveneisenschmidt](https://avatars.githubusercontent.com/u/62278?v=4)](https://github.com/sveneisenschmidt "sveneisenschmidt (19 commits)")[![jkahnt](https://avatars.githubusercontent.com/u/6230882?v=4)](https://github.com/jkahnt "jkahnt (1 commits)")

---

Tags

bundlexmlSymfony2serializationopentrans

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/se-opentrans-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/se-opentrans-bundle/health.svg)](https://phpackages.com/packages/se-opentrans-bundle)
```

###  Alternatives

[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)[bukashk0zzz/liip-imagine-serialization-bundle

Provides integration between LiipImagineBundle and JMSSerializerBundle.

2517.5k](/packages/bukashk0zzz-liip-imagine-serialization-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
