PHPackages                             jdcloud-api/apigateway-signer - 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. [API Development](/categories/api)
4. /
5. jdcloud-api/apigateway-signer

ActiveLibrary[API Development](/categories/api)

jdcloud-api/apigateway-signer
=============================

JDCloud API gataway Signer for PHP

0.2.4(6y ago)421.1k↓61.5%2[1 PRs](https://github.com/jdcloud-api/jdcloud-sdk-php-signer/pulls)Apache-2.0PHPPHP &gt;=5.5

Since Mar 14Pushed 3y ago3 watchersCompare

[ Source](https://github.com/jdcloud-api/jdcloud-sdk-php-signer)[ Packagist](https://packagist.org/packages/jdcloud-api/apigateway-signer)[ Docs](https://www.jdcloud.com/help/faq?act=3)[ RSS](/packages/jdcloud-api-apigateway-signer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (8)Used By (0)

简介
==

[](#简介)

该项目实现京东云API网关签名的生成，适用于API网关产品，也可用于OpenAPI的签名生成。

环境准备
====

[](#环境准备)

1.京东云Php SDK适用于Php 5.5及以上。

2.如果用于OpenAPI的签名，需要在京东云用户中心账户管理下的[AccessKey管理页面](https://uc.jdcloud.com/accesskey/index)申请accesskey和secretKey密钥对（简称AK/SK）;如果用于API网关的签名，可根据情况使用云用户密钥对或者API网关[签名密钥](https://docs.jdcloud.com/cn/api-gateway/create-auth)。

SDK使用方法
=======

[](#sdk使用方法)

建议使用Composer安装京东云Php签名工具：

首先在composer.json添加

```
"require" : {
	"php" : ">=5.5",
	"jdcloud-api/apigateway-signer" : ">=0.1",
}

```

然后使用Composer安装

```
php composer.phar install

```

或

```
composer install

```

您还可以下载sdk源代码自行使用。

SDK使用中的任何问题，欢迎您在Github SDK使用问题反馈页面交流。

调用示例
----

[](#调用示例)

demo中包含了简单的调用示例。

```
    $credentials = new Credentials('ak', 'sk');
    $signature = new SignatureV4('testApiGroup', 'cn-north-1');
    $request = new Request('POST', 'http://xqokj9u7k483.cn-north-1.jdcloud-api.net/iampost?param=param',
        [
            'x-my-header' => 'test'
        ],
        'body data'
        );
    $signedRequest = $signature->signRequest($request, $credentials);
    $client = new Client();
    $response = $client->send($signedRequest, [
            'timeout' => 20,
    ]);

```

### 注意事项

[](#注意事项)

- 调用签名工具前，需要对请求和路径参数进行urlencode
- 请求中需要传递签名工具自动添加的几个x-jdcloud-xxx的请求头

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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 ~34 days

Recently: every ~42 days

Total

6

Last Release

2495d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.5

0.2.3PHP &gt;=5.4

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

signerapi-gatewayjdcloud

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jdcloud-api-apigateway-signer/health.svg)

```
[![Health](https://phpackages.com/badges/jdcloud-api-apigateway-signer/health.svg)](https://phpackages.com/packages/jdcloud-api-apigateway-signer)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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