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

ActiveLibrary

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

大华云睿

v1.0.6(2y ago)1133MITPHP

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 1mo ago

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

903d 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.1k23.1k9](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)[open-dxp/opendxp

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

7310.3k29](/packages/open-dxp-opendxp)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)

PHPackages © 2026

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