Download the PHP package se/opentrans-bundle without Composer
On this page you can find all versions of the php package se/opentrans-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download se/opentrans-bundle
More information about se/opentrans-bundle
Files in se/opentrans-bundle
Package opentrans-bundle
Short Description This bundle integrates the opentrans library into Symfony2. Allows to create OpenTRANS compatible documents from PHP.
License MIT
Homepage https://github.com/sveneisenschmidt/opentrans-bundle
Informations about the package opentrans-bundle
OpenTransBundle
This bundle integrates the [opentrans] (https://github.com/sveneisenschmidt/opentrans) library into Symfony2.
Dev branch is master branch.
Table of Contents
Installation
Configuration
Usage
Tests
Installation
The recommended way to install is through Composer.
Add the bundle to your AppKernel.php file:
Configuration
You can declare default documents in your app configuration. (i.e. app/config/config.yml)
Usage
Your configured document builder is available as a member in se.opentrans.document_builder_manager
service.
Retrieve it by calling $manager->getDocumentBuilder($documentName)
.
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
)