PHPackages                             idg/idg - 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. idg/idg

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

idg/idg
=======

Document image generator

v1.2(8y ago)443682MITPHPPHP &gt;=5.6.0

Since Jan 8Pushed 6y ago6 watchersCompare

[ Source](https://github.com/NikitchenkoSergey/idg)[ Packagist](https://packagist.org/packages/idg/idg)[ Docs](https://github.com/NikitchenkoSergey/idg)[ RSS](/packages/idg-idg/feed)WikiDiscussions master Synced 2w ago

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

Document image generator
========================

[](#document-image-generator)

[![Minimum PHP Version](https://camo.githubusercontent.com/4cbdbfeca62402b9ca3d48503f2bf66fc9809569bcd6de47196d39fecff71e72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e737667)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/2fe3aa3d919362bd720e57cec27566c4a600113c50f2cd08bfa909966d003cc2/68747470733a2f2f7472617669732d63692e6f72672f4e696b69746368656e6b6f5365726765792f6964672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/NikitchenkoSergey/idg)

Fast and simple document image generator. This is a wrapper over Imagick with which you can create such images:

 [![Example](https://camo.githubusercontent.com/9b05bef77fb1e225117d90e013e71320a474521199e630f7ab8ab239b4997a39/687474703a2f2f6e696b69746368656e6b6f2e72752f6964672f696e646578322e706e67)](https://camo.githubusercontent.com/9b05bef77fb1e225117d90e013e71320a474521199e630f7ab8ab239b4997a39/687474703a2f2f6e696b69746368656e6b6f2e72752f6964672f696e646578322e706e67)

See: examples/index.php ### Features

[](#features)

- Any elements count and structure
- `padding`, `margin`, `border`, `background` and `rotation` support
- Possibility to create custom elements
- Computed properties
- Simple markup (like html)
- Possibility to custom canvas by Imagick methods
- Faster and more optimal that html-&gt;pdf-&gt;image

Requirements
============

[](#requirements)

PHP 5.6+, `Imagick` extension.

Installation
============

[](#installation)

composer require idg/idg

Usage
=====

[](#usage)

```
