Download the PHP package creatcode/think-iotmonitor without Composer

On this page you can find all versions of the php package creatcode/think-iotmonitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package think-iotmonitor

creatcode/think-iotmonitor

面向 ThinkPHP、FastAdmin 与 Workerman TCP 服务的物联网监控组件。

组件提供协议拆包、Redis 与数据库连接管理、TCP 流量统计、设备与队列总览,以及无需注册框架路由的独立监控页面。

功能

环境要求

TP6、TP7、TP8 使用数据库 Facade 时,建议安装:

安装

Composer 2.2 及以上版本需要在项目 composer.json 中允许插件执行:

安装或更新后,插件会自动发布以下内容:

环境 配置文件
TP5 / TP5.1 {app-path}/extra/iotmonitor.php,默认是 application/extra/iotmonitor.php
TP6 / TP7 / TP8 config/iotmonitor.php

同时发布:

已有同名配置、入口或资源不会在安装、更新时被覆盖。

配置

发布后的 iotmonitor.php 提供以下主要配置:

完整配置项以发布后的 iotmonitor.php 文件为准。修改配置后,需重启对应的 Workerman TCP Worker。

Workerman 接入

在每个 TCP Worker 的 onWorkerStart 中初始化运行时与监控组件:

使用内置协议时,将协议类配置给对应 Worker。例如 Modbus TCP:

内置协议类:

Redis 连接管理

数据库连接管理

TP5 项目使用 \think\Db;TP6 及以上项目使用 \think\facade\Db。

流量统计

启用 traffic.enable 后,组件会按分钟统计 TCP 收发字节数、收发包数、上报包数和各协议分项,并批量写入 Redis。

支持 5、60、360、1440 分钟统计窗口。

监控总览

总览包含 TCP 流量统计、上报缓存积压、待处理设备上报数、Redis 队列状态、最近活跃设备数和 Workerman 进程信息。

监控页面

所有 ThinkPHP 版本均通过独立入口访问:

总览数据接口:

入口不经过 ThinkPHP 路由,因此无需注册路由或执行路由发现命令。

TP6、TP7、TP8 默认加载以下启动文件之一:

若项目使用自定义启动文件,请设置环境变量:

辅助方法

卸载说明

执行 Composer 卸载时,组件会删除其发布到项目中的配置文件、public/iotmonitor.php 与 public/iotmonitor-assets/。

卸载前请先备份已修改的监控配置、入口或静态资源。

安全建议

监控页面会展示运行状态、队列和设备统计信息。生产环境应通过 Web 服务器访问控制、IP 白名单或认证机制限制以下入口:

许可证

MIT


All versions of think-iotmonitor with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
ext-redis Version *
composer-plugin-api Version ^1.1 || ^2.0
topthink/framework Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || dev-master
workerman/workerman Version ^4.0 || ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package creatcode/think-iotmonitor contains the following files

Loading the files please wait ...