Download the PHP package erikwang2013/industrial-protocols-modbus without Composer

On this page you can find all versions of the php package erikwang2013/industrial-protocols-modbus. 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 industrial-protocols-modbus

Modbus TCP/RTU/ASCII 协议包 — 支持 FC 01/03/04/06/10,纯 PHP Socket 实现

English

Modbus 工业以太网协议,纯 PHP Socket 实现,支持 TCP/RTU/ASCII 三种变体,FC 01(读线圈)、03(读保持寄存器)、04(读输入寄存器)、06(写单寄存器)、10(写多寄存器)。

安装

架构

实现 6 个核心 SDK 接口:ProtocolInterface、ConnectorInterface、DriverInterface(TCP+RTU 双驱动)、FrameInterface(Request+Response 双帧)。通过 composer.json 的 extra.industrial-protocols.protocol 自动注册到内核。

功能

Modbus TCP 驱动(端口 502,FC 01/03/04/06/10)、Modbus RTU 驱动(串口,CRC16 校验)、地址格式解析(40001-49999 保持寄存器 / 30001-39999 输入寄存器 / 0-9999 原始偏移)、批量读写、健康检查、ModbusException 分层异常(fromErrorCode 工厂方法)

使用说明

配置示例

兼容框架

Laravel / Webman / Hyperf / ThinkPHP / Yii2 / Plain PHP

系统要求

License

MIT — Copyright (c) 2026 erik https://erik.xyz


All versions of industrial-protocols-modbus with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
erikwang2013/industrial-protocols-kernel Version *
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 erikwang2013/industrial-protocols-modbus contains the following files

Loading the files please wait ...