PHPackages                             weicome/huaweinvr-for-laravel - 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. weicome/huaweinvr-for-laravel

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

weicome/huaweinvr-for-laravel
=============================

hua wei nvr system extend package

145PHP

Since Nov 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/weicome/huaweinvr-for-laravel)[ Packagist](https://packagist.org/packages/weicome/huaweinvr-for-laravel)[ RSS](/packages/weicome-huaweinvr-for-laravel/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

### 华为NVR-for-laravel接入包

[](#华为nvr-for-laravel接入包)

#### 1.安装到项目

[](#1安装到项目)

```
composer require weicome/huaweinvr-for-laravel

```

#### 2.添加服务到config/app.php

[](#2添加服务到configappphp)

在 providers 中添加

```
Wei\HuaweiNvr\HuaweiNvrServiceProvider::class

```

#### 3.发布配置

[](#3发布配置)

```
php arstran vendor:publish --provider="Wei\HuaweiNvr\HuaweiNvrServiceProvider"

```

#### 4. 修改配置文件的资料,在config/huaweinvr.php

[](#4-修改配置文件的资料在confighuaweinvrphp)

```
'url' => env('HUAWEI_NVR_URL'),
'username' => env('HUAWEI_NVR_USERNAME'),
'password' => env('HUAWEI_NVR_PASSWORD'),

```

都是在环境文件中配置好，service配置是需要处理事件的类

```
'service'=>[
    \App\Services\HuaWei\EventService::class
]

```

事件处理类是自己编写逻辑的，

#### 5. 编写事件实现类，需要继承 Wei\\HuaweiNvr\\NVRInterface 类并实现handler方法

[](#5-编写事件实现类需要继承-weihuaweinvrnvrinterface-类并实现handler方法)

```
use Wei\HuaweiNvr\NVRInterface;
class Event implements NVRInterface{
    public function handler(array $event, array $channel, ?object $nvr = null)
    {
    }
}

```

变量$event,记录了告警事件$event\['event'\], 和图片查询事件$event\['picture'\] 变量$channel,记录了管道数据 $channel\['CH1'\] =&gt; $channel\['channel\_name'\] $nvr服务对象本身,在请求图片是传递，可以调用getPlaybackPicture($pic\_info = null)方法

#### 6. 启动监听

[](#6-启动监听)

```
$  php artisan nvr:listen

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![weicome](https://avatars.githubusercontent.com/u/35256798?v=4)](https://github.com/weicome "weicome (16 commits)")

### Embed Badge

![Health badge](/badges/weicome-huaweinvr-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/weicome-huaweinvr-for-laravel/health.svg)](https://phpackages.com/packages/weicome-huaweinvr-for-laravel)
```

PHPackages © 2026

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