PHPackages                             nicoswd/php-gpg - 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. [Security](/categories/security)
4. /
5. nicoswd/php-gpg

ActiveLibrary[Security](/categories/security)

nicoswd/php-gpg
===============

Pure PHP GPG implementation, forked from php-gpg.

1.7.2(2y ago)6132.9k—6.3%46GPL-1.0+PHPPHP &gt;=7.0

Since Nov 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/nicoSWD/php-gpg)[ Packagist](https://packagist.org/packages/nicoswd/php-gpg)[ RSS](/packages/nicoswd-php-gpg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (6)

php-gpg
=======

[](#php-gpg)

This is a fork of the fork because everything still sucks. All unacceptable.

[![packagist](https://camo.githubusercontent.com/a21d7af7568986e42118bb6d35dd2763584b01d7d04b32fd91ed1583ab26aeb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69636f5357442f7068702d6770672e7376673f6d61784167653d32353932303030)](https://camo.githubusercontent.com/a21d7af7568986e42118bb6d35dd2763584b01d7d04b32fd91ed1583ab26aeb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69636f5357442f7068702d6770672e7376673f6d61784167653d32353932303030)

Features/Limitations
--------------------

[](#featureslimitations)

- Supports encrypting with 2048-bit RSA keys.
- Encrypted messages are integrity protected.

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

$gpg = new nicoSWD\GPG\GPG();
$pubKey = new nicoSWD\GPG\PublicKey($aPublicKey);

echo $gpg->encrypt($pubKey, 'ABCDEFGHIJKL');
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~751 days

Total

8

Last Release

740d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e1cb99ed5c45d41926e55a1a0868f9ecd1b71b026ec8396aef537515786f244?d=identicon)[nicoSWD](/maintainers/nicoSWD)

---

Top Contributors

[![DanielRuf](https://avatars.githubusercontent.com/u/827205?v=4)](https://github.com/DanielRuf "DanielRuf (41 commits)")[![jasonhinkle](https://avatars.githubusercontent.com/u/313176?v=4)](https://github.com/jasonhinkle "jasonhinkle (27 commits)")[![iangcarroll](https://avatars.githubusercontent.com/u/1280719?v=4)](https://github.com/iangcarroll "iangcarroll (26 commits)")[![singpolyma](https://avatars.githubusercontent.com/u/12770?v=4)](https://github.com/singpolyma "singpolyma (1 commits)")[![subzeta](https://avatars.githubusercontent.com/u/2686117?v=4)](https://github.com/subzeta "subzeta (1 commits)")[![undjike](https://avatars.githubusercontent.com/u/57102409?v=4)](https://github.com/undjike "undjike (1 commits)")[![nicoSWD](https://avatars.githubusercontent.com/u/205852?v=4)](https://github.com/nicoSWD "nicoSWD (1 commits)")[![r--w](https://avatars.githubusercontent.com/u/1191700?v=4)](https://github.com/r--w "r--w (1 commits)")

---

Tags

PGPgpg

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pear/crypt_gpg

Provides an object oriented interface to the GNU Privacy Guard (GnuPG). It requires the GnuPG executable to be on the system.

954.4M10](/packages/pear-crypt-gpg)[singpolyma/openpgp-php

Pure-PHP implementation of the OpenPGP Message Format (RFC 4880)

184795.6k10](/packages/singpolyma-openpgp-php)[payu/apple-pay

ApplePay Token Decoder

51983.2k](/packages/payu-apple-pay)[mlocati/ocsp

Library to query HTTPS Certificates revocation status using the Online Certificate Status Protocol (OCSP)

40754.7k2](/packages/mlocati-ocsp)[spatie/ssl-certificate-chain-resolver

SSL certificate chain resolver

3069.6k](/packages/spatie-ssl-certificate-chain-resolver)[camcima/dukpt-php

DUKPT implementation in PHP

25153.1k](/packages/camcima-dukpt-php)

PHPackages © 2026

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