PHPackages                             imactool/dahua-cloud - 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. imactool/dahua-cloud

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

imactool/dahua-cloud
====================

大华云睿

v1.0.6(2y ago)1135MITPHP

Since Aug 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/iMactool/cloud-dahua)[ Packagist](https://packagist.org/packages/imactool/dahua-cloud)[ RSS](/packages/imactool-dahua-cloud/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (2)Versions (9)Used By (0)

 dahuacloud
============

[](#-dahuacloud-)

 [大华云睿开放平台](https://www.cloud-dahua.com/wiki) 、[ 乐橙开放平台开发](https://open.imou.com/book/start.html)

> 需要先熟悉大华云睿开放平台的文档

或

> 乐橙开放平台开发文档

> 没有特别说明的接口，则需按照文档传递

Installing
----------

[](#installing)

```
$ composer require imactool/dahua-cloud -vvv
```

Usage
-----

[](#usage)

### 大华云睿使用方式

[](#大华云睿使用方式)

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

    use Imactool\DahuaCloud\Cloud;

    $config = [
        'client_id'     => '平台的client_id',
        'client_secret' => '平台的client_secret'
    ];

    $cloud = new Cloud($config);

    //获取场所管理 的场所列表
    $params = [
        'pageSize' => 10,
        'pageNum'  => 1
    ];
    $res = $cloud->Org->getPlaceList($params);
    var_dump($res);

    //获取业主二维码
    $personFileId = '550970137048096768';
    $res = $dh->Asc->getQrcode($personFileId);
    var_dump($res);

    //社区-混合云三方接口
    $communityCode = '60bd440488654354bc78f46d657ab91b';
    $mixSer = $dh->Mix->mixHeader($communityCode);
    $params = [
        'pageNum' => 1,
        'pageSize' => 20
    ];
    //查询开门记录
    $res = $mixSer->doorOpenRecord($params);
    var_dump($res);

    //云存储 -> 查询通道是否开通云存储
    $params = ['0','1','2']; //设备序列号$通道id 列表
    $res = $dh->Mixed->getStorageStrategy($params);
    var_dump($res);

    //同步人员授权
    $params =[
        'channelId' => 0,
        'deviceId' => '11dsdsse23432',
        'operateType'=>1,
        'personFileId' => '7634076932312329168'
    ];
    $res = $dh->Asc->syncAuthPersonToDevice($params);
    var_dump($res);

    //远程开门
    $params =[
        'accessSource' => 0,
        'type' => 'remote',
        'deviceId' => '11dsdsse23432',
    ];
    $res = $dh->Asc->remoteOpenDoor($params);
    var_dump($res);

    //查询单个设备详情
    $params = [
        'deviceId' =>'11dsdsse23432'
    ];
    $res = $dh->Device->getDeviceInfo($params);
    var_dump($res);

    //获取开门计划
    $res = $dh->Asc->getDoorTimePlan();
    var_dump($res);

    //添加设备
    $params = [
        'storeId' => '2323232323232', //要添加的组织场所id
        'name'   => '监控摄像测试',
        'deviceId' => '11dsdsse23432',
        'devUsername'=>'admin', //设备用户名(使用Base64编码传入,默认为admin) --> 不需要额外处理
        'devPassword'  =>'lc888888' //设备密码(使用Base64编码传入，默认为admin123)--> 不需要额外处理
    ];
    $res = $dh->Device->addDevice($params);
    var_dump($res);

    //删除设备
    $deviceId = '11dsdsse23432';
    $res = $dh->Device->deleteDevice($deviceId);
    var_dump($res);

```

### 乐橙开放平台使用方式

[](#乐橙开放平台使用方式)

```
	require __DIR__ .'/vendor/autoload.php';
	use Imactool\DahuaCloud\Imou;

	$config =[
		'appId' => '', // 乐橙 appId，控制台-我的应用-应用信息中获取
		'appSecret' => '', // 乐橙 appSecret
	];

	$imou = new Imou($config);

	$params = [
		'deviceId' => '11111'
	];
 	$res = $imou->LcDevice->unBindDeviceInfo($params);
 	var_dump($res);

	//绑定
	$params = [
		'deviceId' => '11111',
		'code'     => ''
	];
	$res = $imou->LcDevice->bindDevice($params);
 	var_dump($res);
```

更多方法，请看源文件（可以使用 请求地址进行搜索匹配接口）

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Recently: every ~115 days

Total

7

Last Release

949d ago

### Community

Maintainers

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

---

Top Contributors

[![iMactool](https://avatars.githubusercontent.com/u/3078413?v=4)](https://github.com/iMactool "iMactool (8 commits)")

### Embed Badge

![Health badge](/badges/imactool-dahua-cloud/health.svg)

```
[![Health](https://phpackages.com/badges/imactool-dahua-cloud/health.svg)](https://phpackages.com/packages/imactool-dahua-cloud)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[ipinfo/ipinfo

The official PHP library for IPinfo, the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier and IP type data sets. Visit our developer docs at https://ipinfo.io/developers.

2921.3M17](/packages/ipinfo-ipinfo)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

771.2k](/packages/whatsdiff-whatsdiff)

PHPackages © 2026

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