PHPackages                             digital-union/dupco - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. digital-union/dupco

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

digital-union/dupco
===================

Digital Union company official SDK.

v1.0.8(3y ago)1171Apache-2.0PHPPHP &gt;=7.0

Since Sep 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/DigitalUnion/du-pco-php-sdk)[ Packagist](https://packagist.org/packages/digital-union/dupco)[ RSS](/packages/digital-union-dupco/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

du-pco-php-sdk
==============

[](#du-pco-php-sdk)

Install
-------

[](#install)

```
composer require digital-union/dupco
```

Extension
---------

[](#extension)

- **openssl**

由于 `php` 原生加密库 `mcrypt` 在 `7.2.0` 版本后被移除，所以使用 `openssl` 扩展进行数据加密。

**请务必安装并开启 `php` 的 `openssl` 扩展。**

更多信息请参考：

Usage
-----

[](#usage)

example/index.php:

```
require __DIR__ .'/../vendor/autoload.php';

use DigitalUnion\DataClient;
use DigitalUnion\utils\Encrypt;

$clientId = 'cloud-test';
$secretKey = 'aa';
$secretVal = 'yDpDEihpUsF_RyWsCES1H';

$apiId = 'idmap-query-all';
$body = [
    'f' => 'mac,imei',
    'k' => '868862032205613',
    'm' => '0',
];

// ---------- 发送请求 ----------
$client = new DataClient($clientId, $secretKey, $secretVal);
//$client->enableTestMode();

$resp = $client->call($apiId, $body);
var_dump($resp);

// ---------- 加解密 ----------
$encrypt = new Encrypt();

$encode = $encrypt->encode(json_encode($body), $secretVal);
var_dump($encode);

$decode = $encrypt->decode($encode, $secretVal);
var_dump($decode);
```

```
php example/index.php
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

1309d ago

Major Versions

v0.0.5 → v1.0.62022-10-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0b2fe10451cd72701dae33b8e71345a8d609a122c34fa73af935dc02dea2084?d=identicon)[digital-union](/maintainers/digital-union)

---

Top Contributors

[![Cailiang](https://avatars.githubusercontent.com/u/7157427?v=4)](https://github.com/Cailiang "Cailiang (1 commits)")

### Embed Badge

![Health badge](/badges/digital-union-dupco/health.svg)

```
[![Health](https://phpackages.com/badges/digital-union-dupco/health.svg)](https://phpackages.com/packages/digital-union-dupco)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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