PHPackages                             umanit/document-generator-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. umanit/document-generator-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

umanit/document-generator-bundle
================================

This bundle is used to drive the document generator microservice developed by UmanIT: https://github.com/umanit/microservice-document-generator

1.0.0(6y ago)17MITPHPPHP &gt;=7.1

Since Jan 28Pushed 3y ago3 watchersCompare

[ Source](https://github.com/umanit/document-generator-bundle)[ Packagist](https://packagist.org/packages/umanit/document-generator-bundle)[ Docs](https://github.com/umanit/document-generator-bundle)[ RSS](/packages/umanit-document-generator-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

UmanIT - Document Generator Bundle
==================================

[](#umanit---document-generator-bundle)

This bundle is used to drive the document generator microservice developed by UmanIT:

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

[](#installation)

`$ composer require umanit/document-generator-bundle`

The bundle relies on HTTPlug to perform HTTP requests, so you will need to install a client implementation to use it. For example, the following will use the HTTPlug message factory and the Guzzle adapter.

`$ composer require php-http/message php-http/guzzle6-adapter`

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

[](#configuration)

- `umanit_document_generator.base_uri`: Base URI of the API used to generate documents.
- `umanit_document_generator.encryption_key`: (Optional) Key used to crypt message before calling the API. It must match the one defined in the micro-service.

Usage
-----

[](#usage)

The only exposed service is `umanit_document_generator.document_generator`. It provides all the necessary methods to communicate with the micro-service API.

You can generate PNG or PDF using an URL or a HTML source code string.

Examples:

```
