PHPackages                             tombroucke/otomaties-woocommerce-pdf-gift-card - 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. tombroucke/otomaties-woocommerce-pdf-gift-card

ActiveWordpress-plugin[PDF &amp; Document Generation](/categories/documents)

tombroucke/otomaties-woocommerce-pdf-gift-card
==============================================

Sell PDF gift cards through WooCommerce with a custom design.

3.4.1(5mo ago)05521[29 PRs](https://github.com/tombroucke/otomaties-woocommerce-pdf-gift-card/pulls)PHPPHP ^8.0CI failing

Since May 4Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/tombroucke/otomaties-woocommerce-pdf-gift-card)[ Packagist](https://packagist.org/packages/tombroucke/otomaties-woocommerce-pdf-gift-card)[ RSS](/packages/tombroucke-otomaties-woocommerce-pdf-gift-card/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (72)Used By (0)

```
=== Otomaties Woocommerce Pdf Gift Card ===
Contributors: tompoezie
Donate link: https://example.com/
Tags: woocommerce, coupon, gift card,
Requires at least: 5.0
Tested up to: 5.4.1
Requires PHP: 7.2
Stable tag: 1.2.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell PDF gift cards through WooCommerce with a custom design.

== Description ==

Customise the PDF gift card in your custom theme or plugin.

Disable custom message
\`add_filter('gc_get_fields', function ($fields) {
    unset($fields['_gc_message']);
    return $fields;
});\`

Add your own pdf background
\`add_filter('gc_pdf_properties', function ($properties) {
    $properties['template'] = App\asset_dir( 'files/gift_card.pdf' );
    return $properties;
});\`

Customize fields
\`add_filter('gc_pdf_fields', function ($fields, $gift_card) {
    $fields['data']['x'] = 29;
    $fields['data']['y'] = 58;
    $fields['content']['x'] = 29;
    $fields['content']['y'] = 65.5;
    $fields['content']['fields']['recipient']['x'] = 95;
    $fields['content']['fields']['recipient']['y'] = 65.5;
    $fields['content']['fields']['coupon'] =  array(
        'value' => get_the_title($gift_card->get_coupon()),
        'margin_top' => 2.7,
        'x' => 95,
        'y' => 58
    );
    $fields['extra_information']['x'] = 12;
    $fields['extra_information']['y'] = 74;
    $fields['extra_information']['fields']['valid_untill']['font'] = array( 'Lato', '', 7);
    $fields['extra_information']['fields']['valid_untill']['align'] = 'R';
    $fields['extra_information']['fields']['valid_untill']['width'] = 132;
    unset($fields['data']['fields']['amount']['color']);
    unset($fields['data']['fields']['amount']['font']);
    unset($fields['content']['fields']['message']);
    unset($fields['content']['fields']['message']);
    return $fields;
}, 99, 2);\`

== Changelog ==

*** Otomaties WooCommerce PDF Gift Card ***

= 1.2.6 =
* Added FR translation

= 1.2.5 =
* Better way to display meta in backend, without duplicating gift card meta

= 1.2.4 =
* Check if WooCommerce is active to avoid fatal error

= 1.2.3 =
* Default maxlength
* Trim message in cart & checkout, not in admin

= 1.2.2 =
* Bug fix
* Check if user can manage_woocommerce before downloading gift card
* Add settings page in WooCommerce->settings->products->gift card to enable debugging
* Remove empty lines from message

= 1.2.1 =
* Bug fix

= 1.2.0 =
* Initial release
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance79

Regular maintenance activity

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity75

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 ~54 days

Recently: every ~151 days

Total

39

Last Release

151d ago

Major Versions

1.5.0 → 2.0.02022-10-03

2.4.1 → 3.0.02023-02-13

1.5.1 → 3.2.02024-03-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/4178291ccf36e3530aa8a8845124c3af1b24c064739ad98ded5b9679a4316033?d=identicon)[tombroucke](/maintainers/tombroucke)

---

Top Contributors

[![tombroucke](https://avatars.githubusercontent.com/u/24292260?v=4)](https://github.com/tombroucke "tombroucke (95 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tombroucke-otomaties-woocommerce-pdf-gift-card/health.svg)

```
[![Health](https://phpackages.com/badges/tombroucke-otomaties-woocommerce-pdf-gift-card/health.svg)](https://phpackages.com/packages/tombroucke-otomaties-woocommerce-pdf-gift-card)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[webklex/laravel-pdfmerger

Generic PDF merger for Laravel

1422.6M2](/packages/webklex-laravel-pdfmerger)[filippo-toso/pdf-watermarker

Simple PDF Watermarker with Laravel support

1548.4k1](/packages/filippo-toso-pdf-watermarker)

PHPackages © 2026

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