PHPackages                             sonnn0904/pgp - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sonnn0904/pgp

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sonnn0904/pgp
=============

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

04PHP

Since May 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sonnam0904/pgp)[ Packagist](https://packagist.org/packages/sonnn0904/pgp)[ RSS](/packages/sonnn0904-pgp/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/47b9fed229503dc106d6258e5095fe80a73c1e64f92f536b9f959c535865d087/68747470733a2f2f7472617669732d63692e6f72672f73696e67706f6c796d612f6f70656e7067702d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/singpolyma/openpgp-php)

OpenPGP.php: OpenPGP for PHP
============================

[](#openpgpphp-openpgp-for-php)

This is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).

-

About OpenPGP
-------------

[](#about-openpgp)

OpenPGP is the most widely-used e-mail encryption standard in the world. It is defined by the OpenPGP Working Group of the Internet Engineering Task Force (IETF) Proposed Standard RFC 4880. The OpenPGP standard was originally derived from PGP (Pretty Good Privacy), first created by Phil Zimmermann in 1991.

-
-

Features
--------

[](#features)

- Encodes and decodes ASCII-armored OpenPGP messages.
- Parses OpenPGP messages into their constituent packets.
    - Supports both old-format (PGP 2.6.x) and new-format (RFC 4880) packets.
- Helper class for verifying, signing, encrypting, and decrypting messages
- Helper class for encrypting and decrypting messages and keys using
    - openssl or mcrypt required for CAST5 encryption and decryption

Bugs, Feature Requests, Patches
-------------------------------

[](#bugs-feature-requests-patches)

This project is primarily maintained by a single volunteer with many other things vying for their attention, please be patient.

Bugs, feature request, pull requests, patches, and general discussion may be submitted publicly via email to:

Github users may alternately submit on the web there.

Users
-----

[](#users)

OpenPGP.php is currently being used in the following projects:

-

Download
--------

[](#download)

To get a local working copy of the development repository, do:

```
git clone https://github.com/singpolyma/openpgp-php.git

```

Alternatively, you can download the latest development version as a tarball as follows:

```
wget https://github.com/singpolyma/openpgp-php/tarball/master

```

Authors
-------

[](#authors)

- [Arto Bendiken](mailto:arto.bendiken@gmail.com) (Original author) -
- [Stephen Paul Weber](mailto:singpolyma@singpolyma.net) (Maintainer) -

License
-------

[](#license)

OpenPGP.php is free and unencumbered public domain software. For more information, see  or the accompanying UNLICENSE file.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5780387?v=4)[Son Nguyen](/maintainers/sonnn)[@sonnn](https://github.com/sonnn)

---

Top Contributors

[![sonnam0904](https://avatars.githubusercontent.com/u/10025285?v=4)](https://github.com/sonnam0904 "sonnam0904 (5 commits)")

### Embed Badge

![Health badge](/badges/sonnn0904-pgp/health.svg)

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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