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

ActiveLibrary

abbotton/esign
==============

根据e签宝官方demo封装的PHP扩展包

v1.0.0(3y ago)3261MITPHPPHP &gt;=7.1

Since Jun 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Abbotton/esign)[ Packagist](https://packagist.org/packages/abbotton/esign)[ Docs](https://github.com/abbotton/esign)[ RSS](/packages/abbotton-esign/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

根据e签宝官方demo封装的PHP扩展包
====================

[](#根据e签宝官方demo封装的php扩展包)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8febf872a495e5beeaf80f6aac5ca0380aa5807ffc2b64447e57809ae4de6c91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6162626f74746f6e2f657369676e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abbotton/esign)[![Total Downloads](https://camo.githubusercontent.com/66fb64d5c92907128293b49b0c677664f3a0b472692e430d3da6d22e44813e47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6162626f74746f6e2f657369676e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abbotton/esign)[![GitHub Actions](https://github.com/abbotton/esign/actions/workflows/main.yml/badge.svg)](https://github.com/abbotton/esign/actions/workflows/main.yml/badge.svg)

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

### 安装

[](#安装)

```
composer require abbotton/esign
```

### 使用

[](#使用)

```
// 初始化操作
use Abbotton\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 Abbotton\Esign\factory\base\Account;
 use Abbotton\Esign\factory\account\QryPersonByaccountId;
 $accountInfo = Account::QryPersonByaccountId()->execute()->getBody();
 var_dump($accountInfo);
```

### 测试

[](#测试)

```
# WIP
composer test
```

### 更新日志

[](#更新日志)

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

### 致谢

[](#致谢)

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

### License

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

1433d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16308633?v=4)[Abbotton](/maintainers/Abbotton)[@Abbotton](https://github.com/Abbotton)

---

Top Contributors

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

---

Tags

esigneabbotton

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)

PHPackages © 2026

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