PHPackages                             nightjar/swiftsigner-cryptgpg - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. nightjar/swiftsigner-cryptgpg

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

nightjar/swiftsigner-cryptgpg
=============================

Signer for Swift Mailer - using PEAR's Crypt\_GPG library for OpenPGP encryption or signing (or both) of outgoing emails.

1.0.0(6y ago)44.1k1MITPHP

Since Nov 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/NightJar/SwiftSigner-CryptGPG)[ Packagist](https://packagist.org/packages/nightjar/swiftsigner-cryptgpg)[ RSS](/packages/nightjar-swiftsigner-cryptgpg/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

PHP based emails protected via OpenPGP
======================================

[](#php-based-emails-protected-via-openpgp)

This library extends the somewhat ubiqitious [SwiftMailer](https://github.com/swiftmailer/swiftmailer) package by providing a class to fit the Message Signer API to implement PGP encryption and optionally signing.

Usage
-----

[](#usage)

One must have a keyring set up and accessible, as per the requirements of the [Crypt\_GPG](https://github.com/pear/Crypt_GPG) library. This means that PHP must also have permission to shell out commands via [`proc_open`](https://www.php.net/proc_open)

```
$encryptionKeyID = 'recipient@example.test';
$signer = new \Nightjar\SwiftSignerCryptGPG($encryptionKeyID);
/** @var Swift_Message $swiftMessage */
$swiftMessage->attachSigner($signer);

```

Upon sending the message it will be encrypted as per PGP/MIME ([RFC 3156](https://tools.ietf.org/html/rfc3156))

Limitations and future development
----------------------------------

[](#limitations-and-future-development)

Currently encryption is mandatory, signing is optional. This should change to provide a signing only option in the future.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2414d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/778003?v=4)[Dylan Wagstaff](/maintainers/Nightjar)[@NightJar](https://github.com/NightJar)

---

Top Contributors

[![NightJar](https://avatars.githubusercontent.com/u/778003?v=4)](https://github.com/NightJar "NightJar (1 commits)")

---

Tags

encryptionsigningemailswiftmailer

### Embed Badge

![Health badge](/badges/nightjar-swiftsigner-cryptgpg/health.svg)

```
[![Health](https://phpackages.com/badges/nightjar-swiftsigner-cryptgpg/health.svg)](https://phpackages.com/packages/nightjar-swiftsigner-cryptgpg)
```

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

84135.6k2](/packages/nterms-yii2-mailqueue)

PHPackages © 2026

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