PHPackages                             mcc7178/esign-php - 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. mcc7178/esign-php

ActiveLibrary

mcc7178/esign-php
=================

e签宝PHP扩展包

013PHP

Since Jan 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mcc7178/esign-php)[ Packagist](https://packagist.org/packages/mcc7178/esign-php)[ RSS](/packages/mcc7178-esign-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

e签宝PHP扩展包
=========

[](#e签宝php扩展包)

鉴于官方并没有维护基于`Composer`的扩展，使用起来不是很方便，遂对官方的DEMO文件简单的封装了一下，方便在其他框架中集成。

### 安装

[](#安装)

```
composer require mcc7178/esign
```

### 使用

[](#使用)

```
// 初始化操作
use AAbutton\Esign\factory\Factory;

Factory::init('your app id', 'your app secret');
// 根据需要设置是否开启debug
Factory::setDebug(true);
// 根据需要配置是否开启代理
Factory::setENABLEHTTPPROXY(true);
Factory::setHTTPPROXYIP('http://127.0.0.1');
Factory::setHTTPPROXYPORT('1234');
// 根据需要配置沙盒环境，注意：如果配置了沙盒环境，记得修改对应的`app id`和`app secret`，否则会报错。
Factory::setHost('https://smlopenapi.esign.cn');
/**
 * 接下来根据自己的需要调用不同的静态方法就可以了
 *
 * 步骤：
 * 1、现在官网找到要调用的接口URI地址
 * 2、在本扩展包中搜索URI地址中的关键字即可找到对应的类
 * 3、通过静态方法调用这个类即可。
 *
 * 举个栗子：
 * 查询个人签署账号对应URI地址是：/v1/accounts/{accountId}。
 * 通过关键字'v1/accounts'搜索，可以发现该接口对应文件为：src/factory/account/QryPersonByaccountId.php
 * 那么调用这个类然后传递指定参数即可, 请参考下方代码：
 */

 use AAbutton\Esign\factory\base\Account;
 use AAbutton\Esign\factory\account\QryPersonByaccountId;
 $accountInfo = Account::QryPersonByaccountId()->execute()->getBody();
 var_dump($accountInfo);
```

### 测试

[](#测试)

```
# WIP
composer test
```

### 更新日志

[](#更新日志)

请查阅 [CHANGELOG](CHANGELOG.md) 获取更多信息。

### 致谢

[](#致谢)

- [ABbutton](https://github.com/abbotton)
- [All Contributors](../../contributors)

### License

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/124509d58a288e7dada34c696bb2c4e8e4c67bdb1d4ad705581a1d90cbddcb33?d=identicon)[mcc7178](/maintainers/mcc7178)

### Embed Badge

![Health badge](/badges/mcc7178-esign-php/health.svg)

```
[![Health](https://phpackages.com/badges/mcc7178-esign-php/health.svg)](https://phpackages.com/packages/mcc7178-esign-php)
```

PHPackages © 2026

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