PHPackages                             apsg/certificate - 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. apsg/certificate

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

apsg/certificate
================

Create PDF certificates

0.1.0(5y ago)030[2 PRs](https://github.com/apsg/Certificate/pulls)MITPHP

Since Apr 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/apsg/Certificate)[ Packagist](https://packagist.org/packages/apsg/certificate)[ Docs](https://github.com/apsg/certificate)[ RSS](/packages/apsg-certificate/feed)WikiDiscussions master Synced 6d ago

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

Certificates
============

[](#certificates)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1274ca09a3c4543b8eeb14adba5a281f2e305f230f7e91a156d3a415ef0122f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617073672f63657274696669636174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apsg/certificate)[![Total Downloads](https://camo.githubusercontent.com/f247dbe83b24ac394955333e86a0c19541b776758fd3ef6b6b0a6e0aaa54d2e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617073672f63657274696669636174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apsg/certificate)[![Build Status](https://camo.githubusercontent.com/8beeeebf7c486331d2c53090c0879ae15c85cbd614579183c83d5c389029fa46/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617073672f63657274696669636174652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/apsg/certificate)[![StyleCI](https://camo.githubusercontent.com/41693dec4fb8c1a8c6c27e2c210e2695dc41bac4115189c499aa3b375a9d1990/68747470733a2f2f7374796c6563692e696f2f7265706f732f3233343737343531342f736869656c64)](https://styleci.io/repos/234774514)

Helper package to provide easy PDF certificates generation. It uses FPDI/FPDF under the hood and is configured to provide support for Polish language. It works as a Laravel 5/6 package but there is not much of Laravel specific functionality added, so it can be used in other projects as well.

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

[](#installation)

Via Composer

```
$ composer require apsg/certificate
```

Usage
-----

[](#usage)

```
use Apsg\Certificate\Certificate;
use Apsg\Certificate\Fields\Field;
use Apsg\Certificate\Formats\A4LandscapeFormat;

class CertificateController extends Controller
{
    /**
     * This will output the pdf to browser to download
     */
    public function test()
    {
        $certificate = new Certificate(null, new A4LandscapeFormat());

        return $certificate
            ->setBackground(storage_path('app/public/tlo.png'))
            ->addField(new Field('test zażółć gęślą', 10, 100, 20))
            ->generate();
    }
}

```

Note: the background would be stretched to fill the page, so use proper resolution and orientation for best results.

Testing
-------

[](#testing)

```
$ composer test
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.6% 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

Unknown

Total

1

Last Release

1844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e36c1cb8ed85fdfb1c40d47597ad48efeb1858f76edc205481409cc0d539644c?d=identicon)[Gacek](/maintainers/Gacek)

---

Top Contributors

[![apsg](https://avatars.githubusercontent.com/u/3952574?v=4)](https://github.com/apsg "apsg (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

laravelcertificate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apsg-certificate/health.svg)

```
[![Health](https://phpackages.com/badges/apsg-certificate/health.svg)](https://phpackages.com/packages/apsg-certificate)
```

###  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)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[rap2hpoutre/fast-excel

Fast Excel import/export for Laravel

2.3k24.9M47](/packages/rap2hpoutre-fast-excel)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[lsnepomuceno/laravel-a1-pdf-sign

Sign PDF files with valid x509 certificates

315101.4k](/packages/lsnepomuceno-laravel-a1-pdf-sign)

PHPackages © 2026

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