PHPackages                             singpolyma/openpgp-php - 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. singpolyma/openpgp-php

ActiveLibrary[Security](/categories/security)

singpolyma/openpgp-php
======================

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

0.7.0(1y ago)184795.6k↑15%68[13 issues](https://github.com/singpolyma/openpgp-php/issues)[1 PRs](https://github.com/singpolyma/openpgp-php/pulls)7UnlicensePHPPHP ^5.6 || ^7.0 || ^8.0

Since Aug 14Pushed 9mo ago20 watchersCompare

[ Source](https://github.com/singpolyma/openpgp-php)[ Packagist](https://packagist.org/packages/singpolyma/openpgp-php)[ GitHub Sponsors](https://github.com/singpolyma)[ Fund](https://liberapay.com/singpolyma)[ RSS](/packages/singpolyma-openpgp-php/feed)WikiDiscussions master Synced 1mo ago

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

[![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:

-
- [Passbolt API](https://github.com/passbolt/passbolt_api)

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

53

—

FairBetter than 97% of packages

Maintenance46

Moderate activity, may be stable

Popularity58

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.1% 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 ~657 days

Recently: every ~669 days

Total

6

Last Release

644d ago

PHP version history (2 changes)0.4.0PHP ^5.6 || ^7.0

0.5.0PHP ^5.6 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/344fb672b0edad0879916eef19e11c2e5d7a12d2157217ad002cad81f4b8e8b3?d=identicon)[singpolyma](/maintainers/singpolyma)

---

Top Contributors

[![singpolyma](https://avatars.githubusercontent.com/u/12770?v=4)](https://github.com/singpolyma "singpolyma (193 commits)")[![vstm](https://avatars.githubusercontent.com/u/1871866?v=4)](https://github.com/vstm "vstm (7 commits)")[![Rotzbua](https://avatars.githubusercontent.com/u/7337347?v=4)](https://github.com/Rotzbua "Rotzbua (6 commits)")[![adecaneda](https://avatars.githubusercontent.com/u/7860942?v=4)](https://github.com/adecaneda "adecaneda (4 commits)")[![jstanden](https://avatars.githubusercontent.com/u/63288?v=4)](https://github.com/jstanden "jstanden (4 commits)")[![stripthis](https://avatars.githubusercontent.com/u/77410?v=4)](https://github.com/stripthis "stripthis (3 commits)")[![DanielRuf](https://avatars.githubusercontent.com/u/827205?v=4)](https://github.com/DanielRuf "DanielRuf (3 commits)")[![artob](https://avatars.githubusercontent.com/u/4963?v=4)](https://github.com/artob "artob (3 commits)")[![allan-simon](https://avatars.githubusercontent.com/u/213167?v=4)](https://github.com/allan-simon "allan-simon (2 commits)")[![ottoszika](https://avatars.githubusercontent.com/u/7945963?v=4)](https://github.com/ottoszika "ottoszika (2 commits)")[![fabacab](https://avatars.githubusercontent.com/u/18677?v=4)](https://github.com/fabacab "fabacab (2 commits)")[![ishanvyas22](https://avatars.githubusercontent.com/u/17404636?v=4)](https://github.com/ishanvyas22 "ishanvyas22 (2 commits)")[![divine](https://avatars.githubusercontent.com/u/48183131?v=4)](https://github.com/divine "divine (1 commits)")[![pabloelcolombiano](https://avatars.githubusercontent.com/u/23249541?v=4)](https://github.com/pabloelcolombiano "pabloelcolombiano (1 commits)")[![cedricalfonsi](https://avatars.githubusercontent.com/u/1582917?v=4)](https://github.com/cedricalfonsi "cedricalfonsi (1 commits)")[![sandeepscet](https://avatars.githubusercontent.com/u/1390862?v=4)](https://github.com/sandeepscet "sandeepscet (1 commits)")[![Maikuolan](https://avatars.githubusercontent.com/u/12571108?v=4)](https://github.com/Maikuolan "Maikuolan (1 commits)")[![jasekiw](https://avatars.githubusercontent.com/u/4037224?v=4)](https://github.com/jasekiw "jasekiw (1 commits)")[![hoffstadt](https://avatars.githubusercontent.com/u/39973752?v=4)](https://github.com/hoffstadt "hoffstadt (1 commits)")

---

Tags

cryptographyopenpgppgpphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/singpolyma-openpgp-php/health.svg)

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

###  Alternatives

[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)
