PHPackages                             apex/armor-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. apex/armor-pgp

ActivePackage

apex/armor-pgp
==============

PGP extension for Armor

2.0.1(3y ago)037MITPHPPHP &gt;=8.0

Since May 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/apexpl/armor-pgp)[ Packagist](https://packagist.org/packages/apex/armor-pgp)[ Docs](https://apexpl.io)[ RSS](/packages/apex-armor-pgp/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Armor - PGP Extension
=====================

[](#armor---pgp-extension)

An extension for the [Armor package](https://github.com/apexpl/armor/) that provides PGP functionality including key management, encrypt / decrypt data, and two factor authentication.

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

[](#installation)

Install via Composer with:

> `composer require apex/armor-pgp`

Table of Contents
-----------------

[](#table-of-contents)

1. [Key Management](https://github.com/apexpl/armor-pgp/blob/master/docs/key_manager.md)
2. [Encrypt / Decrypt Data](https://github.com/apexpl/armor-pgp/blob/master/docs/encrypt.md)
3. [Two Factor Authentication](https://github.com/apexpl/armor-pgp/blob/master/docs/two_factor.md)

Basic Usage
-----------

[](#basic-usage)

```
use Apex\Armor\Armor;
use Apex\Armor\PGP\{KeyManager, EncryptPGP};

// Init Armor
$armor = new Armor();

// Import PGP key
$pgpkey = file_get_contents('mykey.asc');
$manager = new KeyManager($armor);
$manager->import('u:321', $pgpkey);

// Encrypt PGP message
$enc = new EncryptPGP($armor);
$pgp_message = $enc->toUuids('some secret message', ['u:321']);

echo "Encrypted Message:\n\n$pgp_message\n";
```

Support
-------

[](#support)

If you have any questions, issues or feedback, please feel free to drop a note on the [ApexPl Reddit sub](https://reddit.com/r/apexpl/) for a prompt and helpful response.

Follow Apex
-----------

[](#follow-apex)

Loads of good things coming in the near future including new quality open source packages, more advanced articles / tutorials that go over down to earth useful topics, et al. Stay informed by joining the [mailing list](https://apexpl.io/) on our web site, or follow along on Twitter at [@mdizak1](https://twitter.com/mdizak1).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~305 days

Total

3

Last Release

1225d ago

Major Versions

0.1 → 2.02022-01-30

PHP version history (2 changes)0.1PHP &gt;=8.0.0

2.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fe486d2ed7db571c0519bb0d52b08b5e953a911936e87331e736a381ef96f29?d=identicon)[apex](/maintainers/apex)

---

Top Contributors

[![mdizak](https://avatars.githubusercontent.com/u/59886259?v=4)](https://github.com/mdizak "mdizak (3 commits)")[![apexpl](https://avatars.githubusercontent.com/u/56146521?v=4)](https://github.com/apexpl "apexpl (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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