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. [Security](/categories/security)
4. /
5. benycode/key-signatory

ActiveLibrary[Security](/categories/security)

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

Validate and sign content with a private and public key

v1.0.1(3y ago)083↓92.9%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 yesterday

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39025147?v=4)[Benediktas Rukas](/maintainers/benycode)[@benycode](https://github.com/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.6k465.6M1.5k](/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.

2735.6M23](/packages/spomky-labs-pki-framework)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

107105.0k1](/packages/vlucas-pikirasa)[sop/crypto-types

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

121.4M35](/packages/sop-crypto-types)[asymmetricrypt/asymmetricrypt

A simple PHP public key cryptography library

114.3k](/packages/asymmetricrypt-asymmetricrypt)[dsentker/url-signature

A secure URI generation and validation library

1844.9k1](/packages/dsentker-url-signature)

PHPackages © 2026

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