PHPackages                             mtcextendee/mautic-badge-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mtcextendee/mautic-badge-generator-bundle

ActiveMautic-plugin[Utility &amp; Helpers](/categories/utility)

mtcextendee/mautic-badge-generator-bundle
=========================================

1.9.3(6y ago)11663[2 issues](https://github.com/mtcextendee/mautic-badge-generator-bundle/issues)PHP

Since Mar 18Pushed 4y ago3 watchersCompare

[ Source](https://github.com/mtcextendee/mautic-badge-generator-bundle)[ Packagist](https://packagist.org/packages/mtcextendee/mautic-badge-generator-bundle)[ RSS](/packages/mtcextendee-mautic-badge-generator-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Mautic Badge Generator for Mautic
=================================

[](#mautic-badge-generator-for-mautic)

Plugin from Mautic Extension family ([https://mtcextendee.com](https://mtcextendee.com/))

Download 7 ultimate free Mautic email themes

In general, plugin modify any PDF and add new text custom slots and barcode to PDF. Useful for your events.

### Features

[](#features)

- Add with custom text slots to PDF
    - Custom contact fields
    - Custom font-size, color and position
- Add barcode to PDF
    - Require
    - Any custom contact field to generate Barcode
    - Custom position and width/height of barcode
- Add QRcode to PDF
    - Require
    - Any custom contact field to generate QRcode
    - Custom position and width/height of barcode, color etc.
- Token support - use link to badge in email/page (`{badge=1}`)
- Add to stage after download generate PDF
- Generate custom PDF for each contacts from contact list
- Display badge generator bundle just for contact with certain tags

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

[](#installation)

#### Installation from command line:

[](#installation-from-command-line)

1. `composer require mtcextendee/mautic-badge-generator-bundle`
2. `php app/console mautic:plugins:reload`

Manual installation is not allowed because plugins depend on another setasign/fpdi-tcpdf, which is installed automatically from command line.

Setup
-----

[](#setup)

Just go to plugins and enable new BadgeGenerator integration. Then you should see new column in left menu.

[![image](https://user-images.githubusercontent.com/462477/55947007-fee26d80-5c4d-11e9-8e07-47bf08b3b4fa.png)](https://user-images.githubusercontent.com/462477/55947007-fee26d80-5c4d-11e9-8e07-47bf08b3b4fa.png)

### Generate PDF

[](#generate-pdf)

In contact list

[![image](https://user-images.githubusercontent.com/462477/55949170-4c60d980-5c52-11e9-8c77-d7db28b38330.png)](https://user-images.githubusercontent.com/462477/55949170-4c60d980-5c52-11e9-8c77-d7db28b38330.png)

### Before

[](#before)

[![image](https://user-images.githubusercontent.com/462477/55948833-9d240280-5c51-11e9-8222-8d9f8a61476a.png)](https://user-images.githubusercontent.com/462477/55948833-9d240280-5c51-11e9-8222-8d9f8a61476a.png)

### After

[](#after)

[![image](https://user-images.githubusercontent.com/462477/55949107-25a2a300-5c52-11e9-9a7d-8e84bcb4f851.png)](https://user-images.githubusercontent.com/462477/55949107-25a2a300-5c52-11e9-9a7d-8e84bcb4f851.png)

### API

[](#api)

Library:

Hook

```
$api = new \Mautic\Api\Api($auth, $apiUrl);
$contactId = 1;
$badgeId = 2;
$response = $api->makeRequest(sprintf("badge/generator/%d/%d", $contactId, $badgeId));
```

Example for Basic Authorization:

```
// Bootup the Composer autoloader
include __DIR__.'/vendor/autoload.php';

use Mautic\Auth\ApiAuth;

$apiUrl = 'http://mautic.site';
$settings = [
    'userName' => 'admin',
    'password' => 'mautic',
];
$initAuth = new ApiAuth();
$auth     = $initAuth->newAuth($settings, 'BasicAuth');
$api = new \Mautic\Api\Api($auth, $apiUrl);
$contactId = 1;
$badgeId = 2;
$response = $api->makeRequest(sprintf("badge/generator/%d/%d", $contactId, $badgeId));
if (isset($response['pdf'])) {
$result = base64_decode($response['pdf']);
// Write on file
file_put_contents('test.pdf', $result);
echo 'PDF created';
} elseif (isset($response['errors'][0]['message'])) {
echo $response['errors'][0]['message'];
}
```

Response:

- If badge exist for contact

`$response['pdf'] = 'base64 encode of PDF content';`

You need base64decode of PDF content and then process it (dispay or save..). For more info check:

- If badge or contact not exist:

`$response['errors']`

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Recently: every ~7 days

Total

17

Last Release

2453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9996b5ab1567cc086e4e95a1ec81b978c3dc9e780341033319e19822d0991c33?d=identicon)[mtcextendee](/maintainers/mtcextendee)

---

Top Contributors

[![kuzmany](https://avatars.githubusercontent.com/u/462477?v=4)](https://github.com/kuzmany "kuzmany (54 commits)")

---

Tags

extendeemauticmautic-apimautic-pluginmautic-theme

### Embed Badge

![Health badge](/badges/mtcextendee-mautic-badge-generator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mtcextendee-mautic-badge-generator-bundle/health.svg)](https://phpackages.com/packages/mtcextendee-mautic-badge-generator-bundle)
```

###  Alternatives

[thedmsgroup/mautic-health-bundle

Checks the health of the Mautic instance.

1210.8k](/packages/thedmsgroup-mautic-health-bundle)[thedmsgroup/mautic-media-bundle

Pulls cost data from media advertising services.

251.0k](/packages/thedmsgroup-mautic-media-bundle)[thedmsgroup/mautic-campaign-watch-bundle

Visual improvements for campaigns.

171.9k](/packages/thedmsgroup-mautic-campaign-watch-bundle)[maatoo/mautic-referrals-bundle

This plugin enables referrals in mautic.

142.7k](/packages/maatoo-mautic-referrals-bundle)[thedmsgroup/mautic-segment-extras-bundle

Extends Mautic Lead Bundle's Lead List (Segment) functionality.

151.4k](/packages/thedmsgroup-mautic-segment-extras-bundle)

PHPackages © 2026

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