PHPackages                             thewateringcan/phpmodbus - 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. thewateringcan/phpmodbus

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

thewateringcan/phpmodbus
========================

Composer version of PhpModBus

0.8(2y ago)010LGPLPHP

Since Sep 14Pushed 2y agoCompare

[ Source](https://github.com/The-Watering-Can-Dev-Team/phpmodbus)[ Packagist](https://packagist.org/packages/thewateringcan/phpmodbus)[ RSS](/packages/thewateringcan-phpmodbus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

phpmodbus
=========

[](#phpmodbus)

This project deals with an implementation of the basic functionality of the Modbus TCP and UDP based protocol using PHP. It's a copy of the releases from the project page over at [Google Code](https://code.google.com/p/phpmodbus/) with composer support added.

Features
--------

[](#features)

- Modbus master
    - FC1 - Read coils
    - FC2 - Read input discretes
    - FC3 - Read holding registers
    - FC4 - Read holding input registers
    - FC5 - Write single coil
    - FC6 - Write single register
    - FC15 - Write multiple coils
    - FC16 - Write multiple registers
    - FC22 - Mask Write register
    - FC23 - Read/Write multiple registers

Example
-------

[](#example)

```
 // Modbus master UDP
 $modbus = new ModbusMaster("192.168.1.1", "UDP");
 // Read multiple registers
 try {
     $recData = $modbus->readMultipleRegisters(0, 12288, 5);
 }
 catch (Exception $e) {
     // Print error information if any
     echo $modbus;
     echo $e;
     exit;
 }
 // Print data in string format
 echo PhpType::bytes2string($recData);
```

For more see [documentation](https://code.google.com/p/phpmodbus/downloads/list) or [FAQ](https://code.google.com/p/phpmodbus/wiki/FAQ).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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

Unknown

Total

1

Last Release

969d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7770a77eb563157ec76e4ef6b644778cf08aa9c4b5a8efaa56fd8b12b11fa284?d=identicon)[joshtwc](/maintainers/joshtwc)

---

Top Contributors

[![joshtwc](https://avatars.githubusercontent.com/u/105220132?v=4)](https://github.com/joshtwc "joshtwc (10 commits)")[![adduc](https://avatars.githubusercontent.com/u/44527?v=4)](https://github.com/adduc "adduc (4 commits)")[![FabrizioC](https://avatars.githubusercontent.com/u/881137?v=4)](https://github.com/FabrizioC "FabrizioC (4 commits)")

### Embed Badge

![Health badge](/badges/thewateringcan-phpmodbus/health.svg)

```
[![Health](https://phpackages.com/badges/thewateringcan-phpmodbus/health.svg)](https://phpackages.com/packages/thewateringcan-phpmodbus)
```

###  Alternatives

[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[prgayman/laravel-zatca

Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing

2926.9k1](/packages/prgayman-laravel-zatca)[ducks-project/spl-types

Polyfill Module for SplType PHP extension. This extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string

1032.4k](/packages/ducks-project-spl-types)

PHPackages © 2026

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