PHPackages                             cdkey/client - 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. cdkey/client

ActiveLibrary

cdkey/client
============

CDKey Client

v1.1.4(7y ago)052MITPHPPHP &gt;=7.0

Since Aug 13Pushed 7y agoCompare

[ Source](https://github.com/shaoyugong/cdkey-client)[ Packagist](https://packagist.org/packages/cdkey/client)[ RSS](/packages/cdkey-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (16)Used By (0)

服务说明
====

[](#服务说明)

兑换码服务客户端

安装
--

[](#安装)

### composer.json配置文件

[](#composerjson配置文件)

```
{
  "autoload": {
    "psr-4": {
      "CdkeyClient\\": "src/"
    }
  },

  "require": {
    "cdkey/client": "^1.0.1"
  },
}

```

### 执行命令安装

[](#执行命令安装)

`composer install`

### 调用方法

[](#调用方法)

请查看example文件夹

业务API接口
=======

[](#业务api接口)

1.通讯协议
------

[](#1通讯协议)

http

2.公共参数（url参数）
-------------

[](#2公共参数url参数)

参数类型描述timeint请求时间signstring签名3.接口
----

[](#3接口)

地址: `http://47.100.189.18:10004/api/`

token: `xdapp.com`

验证：md5({code}{pid}{time}{token})

### 3.1领取礼券

[](#31领取礼券)

方式：`POST`

地址：`http://47.100.189.18:10004/api/cdkey/receive?time=1517539152&sign=3c031ee08db6270190e1fc9646b6aa8e"`

参数:

参数类型必要描述codestring是礼包码pidint是角色idcurl测试命令:`curl -d "code=GB&pid=123456" "http://47.100.189.18:10004/api/cdkey/receive?time=1517539152&sign=3c031ee08db6270190e1fc9646b6aa8e"`

返回信息:

参数类型描述statusbool状态(true:成功,false:失败)msgstring消息datastring兑换码### 3.2使用礼券

[](#32使用礼券)

方式：`POST`

地址：`http://47.100.189.18:10004/api/cdkey/use?time=1517539152&sign=3c031ee08db6270190e1fc9646b6aa8e"`

参数:

参数类型必要描述codestring是兑换码pidint是角色idcurl测试命令:`curl -d "code=009AHB03W7GT&pid=123456" "http://47.100.189.18:10004/api/cdkey/use?time=1517539152&sign=3c031ee08db6270190e1fc9646b6aa8e"`

返回信息:

参数类型描述statusbool状态(true:成功,false:失败)msgstring消息

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~52 days

Total

15

Last Release

2611d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5165ac749f616afd4566141e1a05eb87673904204cabf616ec46e040e91858d9?d=identicon)[shaoyu](/maintainers/shaoyu)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/cdkey-client/health.svg)

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

PHPackages © 2026

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