PHPackages                             uduncloud/udun-wallet-sdk - 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. uduncloud/udun-wallet-sdk

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

uduncloud/udun-wallet-sdk
=========================

udun-wallet-sdk

1.0.0(3y ago)152.9k↓50%10[2 issues](https://github.com/uduncloud/udun-sdk-php/issues)MITPHPPHP &gt;=7.0

Since Jul 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/uduncloud/udun-sdk-php)[ Packagist](https://packagist.org/packages/uduncloud/udun-wallet-sdk)[ RSS](/packages/uduncloud-udun-wallet-sdk/feed)WikiDiscussions master Synced 1mo ago

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

udun-sdk-php
============

[](#udun-sdk-php)

udun-sdk-php

安装
--

[](#安装)

### 方式1：命令安装

[](#方式1命令安装)

```
	composer require uduncloud/udun-wallet-sdk
```

### 方式2：composer 配置安装

[](#方式2composer-配置安装)

1,在composer.json添加如下配置

```
{
	"require":{
		"uduncloud/udun-wallet-sdk": "^1.0"
	}
}
```

2,执行命令

```
	composer install

```

使用
--

[](#使用)

1,新建UdunController.php

```
	use udun\Dispatch\UdunDispatch;

	class UdunController{
		protected $udunDispatch ;
		public function __construct()
	    {
	       	// 控制器初始化
	       	$this->initialize();
	    }
	    protected function initialize(){
	    	$this->udunDispatch = new UdunDispatch([
	            'merchant_no' => 30000, //商户号
	            'api_key' => 'c789xxxxxxxxxxxxxxxxx388ecxxx',//apikey
	            'gateway_address'=>'https://sig11.udun.io', //节点
	            'callUrl'=>'https://localhost/callUrl', //回调地址
	            'debug' => false  //调试模式
	        ]);
	    }
	}

```

2,在需要使用到接口的类继承 UdunController

```
	##使用示例
	namespace xxxx;
	class Index extends UdunController{
		//查询支持的交易对
		public function supportCoins()
	    {
	    	$result =  $this->udunDispatch->supportCoins(true);
	        return json($result);
	    }

	    //创建地址
		public function createAddress()
	    {
	    	$result =  $this->udunDispatch->createAddress('195');
	        return json($result);
	    }

	    //验证地址合法性
		public function checkAddress()
	    {
	    	$result =  $this->udunDispatch->checkAddress('195','TEpK1aWkjDue6j8reeeMqG7hdJ5tRytyAF');
	        return json($result);
	    }

	    //查询地址是否存在
		public function existAddress()
	    {
	    	$result =  $this->udunDispatch->existAddress('195','TEpK1aWkjDue6j8reeeMqG7hdJ5tRytyAF');
	        return json($result);
	    }

	    //申请提币
		public function withdraw()
	    {
	    	$result =  $this->udunDispatch->withdraw('sn00001','195','195','TEpK1aWkjDue6j8reeeMqG7hdJ5tRytyAF',10);
	        return json($result);
	    }

	    //交易回调
		public function callback()
	    {
	    	$result =  $this->udunDispatch->callback();
	        return json($result);
	    }

	}

```

其他
--

[](#其他)

```
##curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
如果提示以上错误需要添加ca证书
##php.ini  打开ssl
extension=php_openssl.dll;
##证书路径
openssl.cafile=D:\cacert.pem

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

1383d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1552ed960ff37a858f3d2d6bf3c09cfc803137ada00f6d802d4e5b6bdbb5ae21?d=identicon)[lehoel1](/maintainers/lehoel1)

---

Top Contributors

[![lehoel1](https://avatars.githubusercontent.com/u/109498100?v=4)](https://github.com/lehoel1 "lehoel1 (4 commits)")[![ScottChengMingFeng](https://avatars.githubusercontent.com/u/28612459?v=4)](https://github.com/ScottChengMingFeng "ScottChengMingFeng (4 commits)")[![shawndslee](https://avatars.githubusercontent.com/u/96909681?v=4)](https://github.com/shawndslee "shawndslee (3 commits)")[![Shawndslee](https://avatars.githubusercontent.com/u/96909681?v=4)](https://github.com/Shawndslee "Shawndslee (3 commits)")[![udun-cloud](https://avatars.githubusercontent.com/u/53282294?v=4)](https://github.com/udun-cloud "udun-cloud (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uduncloud-udun-wallet-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/uduncloud-udun-wallet-sdk/health.svg)](https://phpackages.com/packages/uduncloud-udun-wallet-sdk)
```

###  Alternatives

[markrogoyski/ipv4-subnet-calculator

Network calculator for subnet mask and other classless (CIDR) network information.

177813.7k6](/packages/markrogoyski-ipv4-subnet-calculator)[96qbhy/tt-microapp

字节跳动小程序sdk

728.9k](/packages/96qbhy-tt-microapp)[96qbhy/baidu-aip

百度 AI 开放平台 php-sdk

633.9k](/packages/96qbhy-baidu-aip)[96qbhy/lbscloud-sdk

LBS.云 PHP SDK

182.4k](/packages/96qbhy-lbscloud-sdk)[96qbhy/agora

声网php-SDK

121.5k](/packages/96qbhy-agora)

PHPackages © 2026

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