PHPackages                             apex/armor-apikeys - 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. [API Development](/categories/api)
4. /
5. apex/armor-apikeys

ActivePackage[API Development](/categories/api)

apex/armor-apikeys
==================

API keys extension for Armor

2.0(4y ago)08241MITPHPPHP &gt;=8.0

Since May 7Pushed 4y ago1 watchersCompare

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

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

Armor - API Keys Extension
==========================

[](#armor---api-keys-extension)

An extension for the [Armor package](https://github.com/apexpl/armor/) that provides functionality for API keys including refresh tokens. Useful for REST APIs.

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

[](#installation)

Install via Composer with:

> `composer require apex/armor-apikeys`

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

[](#table-of-contents)

1. [Key Management](https://github.com/apexpl/armor-apikeys/blob/master/docs/key_manager.md)
2. [Login and Authentication](https://github.com/apexpl/armor-apikeys/blob/master/docs/login.md)
3. [Refresh Tokens](https://github.com/apexpl/armor-apikeys/blob/master/docs/refresh_tokens.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

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~134 days

Total

3

Last Release

1511d ago

Major Versions

0.1.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 (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k186.9M875](/packages/google-apiclient)[stripe/stripe-php

Stripe PHP Library

4.0k139.3M411](/packages/stripe-stripe-php)[webonyx/graphql-php

A PHP port of GraphQL reference implementation

4.7k75.4M270](/packages/webonyx-graphql-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k90.6M248](/packages/twilio-sdk)[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k52.7M205](/packages/friendsofsymfony-jsrouting-bundle)[knplabs/github-api

GitHub API v3 client

2.2k15.3M170](/packages/knplabs-github-api)

PHPackages © 2026

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