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 3w ago

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 26% 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

2390d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11416856?v=4)[JoseChan](/maintainers/524233828)[@524233828](https://github.com/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

[mews/purifier

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

2.0k18.7M142](/packages/mews-purifier)[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.6M22](/packages/spomky-labs-pki-framework)[tilleuls/url-signer-bundle

Create and validate signed URLs with a limited lifetime in Symfony

81369.3k](/packages/tilleuls-url-signer-bundle)[aplus/crypto

Aplus Framework Crypto Library

171.6M1](/packages/aplus-crypto)[deemru/curve25519

Curve25519 sign/verify

1241.0k3](/packages/deemru-curve25519)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5287.3k30](/packages/ionux-phactor)

PHPackages © 2026

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