PHPackages                             jose-chan/signature - 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. jose-chan/signature

ActiveLibrary[Security](/categories/security)

jose-chan/signature
===================

v1.0.0(6y ago)0131MITPHPPHP ^7.1.3

Since Dec 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ILoveJoseM/signature)[ Packagist](https://packagist.org/packages/jose-chan/signature)[ RSS](/packages/jose-chan-signature/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (1)

签名适配器
-----

[](#签名适配器)

#### 安装

[](#安装)

```
composer require "jose-chan/signature"

```

#### 示例

[](#示例)

```
require "vendor/autoload.php";

use JoseChan\Signature\SignAdaptor;

//签名
//hash签名
SignAdaptor::getInstance()->sign(
    $parameter_string,//待签名字符串
    $sign_key,//用于签名的key
    SignAdaptor::HASH
);

//RSA签名
SignAdaptor::getInstance()->sign(
    $parameter_string,//待签名字符串
    $private_key,//私钥
    SignAdaptor::RSA
);

//验签
//hash验签
SignAdaptor::getInstance()->verify(
    $parameter_string,//待签名字符串
    $sign,//签名
    $sign_key,//用于签名的key
    SignAdaptor::HASH
);

//RSA验签
SignAdaptor::getInstance()->sign(
    $parameter_string,//待签名字符串
    $sign,//签名
    $public_key,//公钥
    SignAdaptor::RSA
);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

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

Unknown

Total

1

Last Release

2339d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

verifysign

### Embed Badge

![Health badge](/badges/jose-chan-signature/health.svg)

```
[![Health](https://phpackages.com/badges/jose-chan-signature/health.svg)](https://phpackages.com/packages/jose-chan-signature)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)

PHPackages © 2026

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