PHPackages                             dataground/simplepgp - 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. dataground/simplepgp

ActiveLibrary

dataground/simplepgp
====================

Pure PHP simple PGP decryption

0.2.2(1y ago)02181MITPHP

Since Nov 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dataground/simplepgp)[ Packagist](https://packagist.org/packages/dataground/simplepgp)[ RSS](/packages/dataground-simplepgp/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

SimplePGP
=========

[](#simplepgp)

Very simple library for PGP decryption using the excellent (but rather complex) Singpoyma OpenPGP Library. A lot of people have problems with the complexity of GnuPG/OpenPGP/PGP decryption in automated workflows. SimplePGP tries to solve this problem, it can decrypt data without any dependencies and without the need to add the private key to any local keyring.

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

[](#installation)

`composer install dataground/simplepgp`

Input formats
-------------

[](#input-formats)

- The PrivateKey file should be ascii armored (default for most key export tools)
- The input file content should be in base64 encoded format (not binary)

Example
-------

[](#example)

```
$spgp = new SimplePgp();

$decrypted = $spgp->decrypt(
  file_get_contents('/path/to/my_encrypted_file'),
  file_get_contents('/path/to/my_privatekey_file'),
  'myVerySecretKeyPassPhrase'
);
```

TODO
----

[](#todo)

- Add encryption support
- Improve error handling
- Add tests and examples

Contributing
------------

[](#contributing)

Contributions are very welcome, please adhere to \[\] best practices.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance43

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~1320 days

Total

3

Last Release

458d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/294096?v=4)[PK](/maintainers/dataground)[@dataground](https://github.com/dataground)

---

Top Contributors

[![dataground](https://avatars.githubusercontent.com/u/294096?v=4)](https://github.com/dataground "dataground (5 commits)")[![mrdm-nl](https://avatars.githubusercontent.com/u/6248354?v=4)](https://github.com/mrdm-nl "mrdm-nl (2 commits)")

### Embed Badge

![Health badge](/badges/dataground-simplepgp/health.svg)

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

###  Alternatives

[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)

PHPackages © 2026

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