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)6134.0k—8.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 2w 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

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

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

831d 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

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[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.7M13](/packages/pear-crypt-gpg)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9082.3k](/packages/n1ebieski-ksef-php-client)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

33182.7k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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