PHPackages                             devraeph/laravel-pdf-signer - 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. devraeph/laravel-pdf-signer

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

devraeph/laravel-pdf-signer
===========================

Laravel PDF Signer by DevRaeph

1.0.1(4y ago)1121MITPHPPHP ^7.4CI passing

Since Sep 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DevRaeph/laravel-pdf-signer)[ Packagist](https://packagist.org/packages/devraeph/laravel-pdf-signer)[ Docs](https://github.com/devraeph/laravel-pdf-signer)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/devraeph-laravel-pdf-signer/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (3)Used By (0)

[![Logo](https://camo.githubusercontent.com/552f8001190e0f1733c7fc04b72dc41baea8b1c44419c3f777d812f0178f9a56/68747470733a2f2f692e706f7374696d672e63632f39514c36667270672f5064662d5369676e65722e706e67)](https://camo.githubusercontent.com/552f8001190e0f1733c7fc04b72dc41baea8b1c44419c3f777d812f0178f9a56/68747470733a2f2f692e706f7374696d672e63632f39514c36667270672f5064662d5369676e65722e706e67)

PDF Signer by DevRaeph
======================

[](#pdf-signer-by-devraeph)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec23e19abfdcddce6b1c2a12848f6987e8def9b39aff6222821483127c303c28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657672616570682f6c61726176656c2d7064662d7369676e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devraeph/laravel-pdf-signer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/366e1deaf72ff8b11975c4b7e10e30058ac9ccffa5a1ef4553a7bc00ef7e83ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f64657672616570682f6c61726176656c2d7064662d7369676e65722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/devraeph/laravel-pdf-signer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/850774ad4c4206f55e84b3e771cab978f8f00d6937f39889b0e978611d5c083d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f64657672616570682f6c61726176656c2d7064662d7369676e65722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/devraeph/laravel-pdf-signer/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/be7b8d065df7a87b530efcabf671bf99e493d1e4333749c15b8876d8bbd04b2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657672616570682f6c61726176656c2d7064662d7369676e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devraeph/laravel-pdf-signer)

---

With this packages you can digitally sign pdf files with a certificate.

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

[](#installation)

You can install the package via composer:

```
composer require devraeph/laravel-pdf-signer
```

You can publish the config file with:

```
php artisan vendor:publish --provider="DevRaeph\PdfSigner\PdfSignerServiceProvider" --tag="pdf-signer-config"
```

This is the contents of the published config file:

```
return [
    "business"      =>      "",
    "reason"        =>      "",
    "url"           =>      "",
    "cert"          =>      env("SIGNER_CERT_PATH","cert/test.crt"),
    "key"           =>      env("SIGNER_KEY_PATH","cert/key.key"),
    "password"      =>      env("SIGNER_KEY_PASSWORD","")
];
```

### Create self signed Certificate

[](#create-self-signed-certificate)

Generate Key file withour password:

```
openssl genrsa -out example.key 4096
```

Generate Key file with password set:

```
openssl genrsa -aes128 -passout pass:MyStrongPwd -out example.key 4096
```

Generate self signed Certificate:

```
openssl openssl req -x509 -nodes -days 365000 -key example.key -out example.crt
```

Environment Variables
---------------------

[](#environment-variables)

Following vars have to be set in .env file:

`SIGNER_CERT_PATH` Storage path of created certificate

`SIGNER_KEY_PATH` Storage path of created key file

`SIGNER_KEY_PASSWORD` optional password for key file

Usage
-----

[](#usage)

Only use Facade to interact with the PDF Signer.

```
use DevRaeph\PdfSigner\Facades\PdfSigner;

/* Load file from Storage path */

PDFSigner::loadFile("example.pdf")
        ->setSavePath() //Optional save Path
        ->sign();
```

Credits
-------

[](#credits)

- [DevRaeph](https://github.com/devraeph)
- [All Contributors](../../contributors)

Sponsor
-------

[](#sponsor)

[![ko-fi](https://camo.githubusercontent.com/201ef269611db7eb6b5d08e9f756ab8980df3014b64492770bdf13a6ed924641/68747470733a2f2f6b6f2d66692e636f6d2f696d672f676974687562627574746f6e5f736d2e737667)](https://ko-fi.com/A0A3E29FS)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

2

Last Release

1705d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58560217?v=4)[Raphael Planer](/maintainers/devraeph)[@DevRaeph](https://github.com/DevRaeph)

---

Top Contributors

[![DevRaeph](https://avatars.githubusercontent.com/u/58560217?v=4)](https://github.com/DevRaeph "DevRaeph (24 commits)")

---

Tags

laravelDevRaephlaravel-pdf-signer

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devraeph-laravel-pdf-signer/health.svg)

```
[![Health](https://phpackages.com/badges/devraeph-laravel-pdf-signer/health.svg)](https://phpackages.com/packages/devraeph-laravel-pdf-signer)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

9963.4M11](/packages/spatie-laravel-pdf)[creagia/laravel-sign-pad

Laravel package for of E-Signature with Signature Pad and Digital Certified Sign with TCPDF

54097.2k](/packages/creagia-laravel-sign-pad)[elibyy/tcpdf-laravel

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

3542.7M5](/packages/elibyy-tcpdf-laravel)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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