PHPackages                             jsignpdf/jsignpdf-php - 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. jsignpdf/jsignpdf-php

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

jsignpdf/jsignpdf-php
=====================

jsignpdf-php

v1.3.1(9mo ago)23106.8k↓33.9%5[5 PRs](https://github.com/JSignPdf/jsignpdf-php/pulls)MITPHPPHP ^8.1CI passing

Since Jun 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/JSignPdf/jsignpdf-php)[ Packagist](https://packagist.org/packages/jsignpdf/jsignpdf-php)[ RSS](/packages/jsignpdf-jsignpdf-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (31)Used By (0)

jsignpdf-php
============

[](#jsignpdf-php)

This package is only wrapper of [JSignPdf](http://jsignpdf.sourceforge.net/) to use in PHP

Installation:
-------------

[](#installation)

```
$ composer require jeidison/jsignpdf-php
```

Examples
--------

[](#examples)

```
use Jeidison\JSignPDF\JSignPDF;
use Jeidison\JSignPDF\Sign\JSignParam;

$param = JSignParam::instance();
$param->setCertificate(file_get_contents('/path/to/file/certificate.pfx'));
$param->setPdf(file_get_contents('/path/to/file/pdf_to_sign.pdf'));
$param->setPassword('certificate_password');

$jSignPdf   = new JSignPDF($param);
$fileSigned = $jSignPdf->sign();
file_put_contents('/path/to/file/file_signed.pdf', $fileSigned);
```

With Java Installed:

```
$param->setIsUseJavaInstalled(true);
```

With standalone Java:

```
$param->setJavaPath('/path/to/bin/java');
```

With JSignPDF bin:

```
$param->setjSignPdfJarPath('/path/to/jsignpdf');
```

With specific Java or JSignPdf version:

```
$params->getJSignPdfDownloadUrl('the url to download the zip here');
$params->setJavaDownloadUrl('the url to download the .tar.gz here');
```

Without JSignPDF bin:

```
composer require jsignpdf/jsignpdf-bin
```

File signed as base64:

```
$param->setIsOutputTypeBase64(true);
```

Change temp directory:

```
$param->setTempPath('/path/temp/to/sign/files/');
```

Change parameters of JSignPDF:

```
$param->setJSignParameters("-a -kst PKCS12 -ts https://freetsa.org/tsr");
```

Credits
-------

[](#credits)

- [Jeidison Farias](https://github.com/jeidison)

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance70

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 56.5% 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 ~97 days

Recently: every ~119 days

Total

24

Last Release

278d ago

Major Versions

0.6 → 1.0.02020-05-14

PHP version history (5 changes)0.1PHP &gt;=5.3.0

1.0.0PHP ^7.1

1.0.5PHP &gt;=7.4

1.0.6PHP ^7.4|^8.0

v1.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/672f00a9bee58935e9851abc9ae1c1dfa05da76f684e08c183b5aa1ef9020e0e?d=identicon)[jeidison](/maintainers/jeidison)

![](https://www.gravatar.com/avatar/67d8686e0265c7d5aca8ebd047cf1fff8f41922d1b10126c7398851256feba79?d=identicon)[vitormattos](/maintainers/vitormattos)

![](https://avatars.githubusercontent.com/u/32546069?v=4)[LibreCode coop](/maintainers/librecodecoop)[@LibreCodeCoop](https://github.com/LibreCodeCoop)

---

Top Contributors

[![vitormattos](https://avatars.githubusercontent.com/u/1079143?v=4)](https://github.com/vitormattos "vitormattos (91 commits)")[![jeidison](https://avatars.githubusercontent.com/u/12176232?v=4)](https://github.com/jeidison "jeidison (64 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")

---

Tags

hacktoberfestjsignpdfjsignpdf-phppdfpdf-phpphpsignsignaturesignature-phpphppdfsignaturejsignpdfPHP SignaturePDF Sign PHP

### Embed Badge

![Health badge](/badges/jsignpdf-jsignpdf-php/health.svg)

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

###  Alternatives

[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[jeidison/jsignpdf-php

jsignpdf-php

236.6k](/packages/jeidison-jsignpdf-php)[ddn/sapp

Simple and Agnostic PDF Parser (SAPP): Edit, manipulate and sign PDF documents usign PHP

14867.5k1](/packages/ddn-sapp)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

761.1M7](/packages/pontedilana-php-weasyprint)[daandesmedt/phpheadlesschrome

A PHP wrapper for using Google Chrome Headless mode. Convert URL or HTML to a PDF / screenshot. Easy to use and OOP interfaced.

92233.1k](/packages/daandesmedt-phpheadlesschrome)[kartik-v/mpdf

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

39328.4k1](/packages/kartik-v-mpdf)

PHPackages © 2026

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