PHPackages                             benycode/key-signatory - 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. benycode/key-signatory

ActiveLibrary

benycode/key-signatory
======================

Validate and sign content with a private and public key

v1.0.1(3y ago)074↓50%PHPPHP ^8.0

Since Feb 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/benycode/key-signatory)[ Packagist](https://packagist.org/packages/benycode/key-signatory)[ RSS](/packages/benycode-key-signatory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Public and private key Signatory
================================

[](#public-and-private-key-signatory)

Validate and sign content with a RSA private and public key

Table of contents
-----------------

[](#table-of-contents)

- [Install](#install)
- [Usage](#usage)

Install
-------

[](#install)

Via Composer

```
$ composer require benycode/key-signatory
```

Requires PHP8+.

Usage
-----

[](#usage)

Sign a content with a private key

```
use BenyCode\KeySignatory\Signer;

$content = 'a content to be signed';

$privateKey = '-----BEGIN RSA PRIVATE KEY----------END RSA PRIVATE KEY-----';

$passphrase = '';

$signature = Signer::signWithPrivateKey($content, $privateKey, $passphrase);
```

Validate a content with a public key

```
use BenyCode\KeySignatory\Validator;

$content = 'a content to be verified';

$publicKey = '-----BEGIN RSA PUBLIC KEY----------END RSA PUBLIC KEY-----';

$signature = '';

$signature = Validator::validateWithPublicKey($content, $signature, $publicKey);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~0 days

Total

2

Last Release

1194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb3e8d371d500a222cf7d259a737b7de87389296eb9584360f9a68c594d2a2dc?d=identicon)[benycode](/maintainers/benycode)

---

Top Contributors

[![benycode](https://avatars.githubusercontent.com/u/39025147?v=4)](https://github.com/benycode "benycode (3 commits)")

---

Tags

signaturersaPrivate Keypublic keyvalidate

### Embed Badge

![Health badge](/badges/benycode-key-signatory/health.svg)

```
[![Health](https://phpackages.com/badges/benycode-key-signatory/health.svg)](https://phpackages.com/packages/benycode-key-signatory)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[spomky-labs/pki-framework

A PHP framework for managing Public Key Infrastructures. It comprises X.509 public key certificates, attribute certificates, certification requests and certification path validation.

2725.9M11](/packages/spomky-labs-pki-framework)[sop/crypto-types

A PHP library of various ASN.1 types for cryptographic applications.

111.4M33](/packages/sop-crypto-types)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

104101.1k1](/packages/vlucas-pikirasa)[sop/crypto-encoding

A PHP implementation of textual encodings of cryptographic structures.

161.4M27](/packages/sop-crypto-encoding)[asymmetricrypt/asymmetricrypt

A simple PHP public key cryptography library

114.1k](/packages/asymmetricrypt-asymmetricrypt)

PHPackages © 2026

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