PHPackages                             zeran/async-serial-port - 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. zeran/async-serial-port

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

zeran/async-serial-port
=======================

1.0(1y ago)11MITPHPPHP &gt;=8.3

Since Apr 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tsiura/async-serial-port)[ Packagist](https://packagist.org/packages/zeran/async-serial-port)[ RSS](/packages/zeran-async-serial-port/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Zeran SerialPort
================

[](#zeran-serialport)

An asynchronous PHP library for serial port communication built on ReactPHP.

Introduction
------------

[](#introduction)

Zeran SerialPort is a modern PHP library that provides asynchronous serial port communication using ReactPHP's event loop. It supports various baud rates, parity settings, and platform-specific configurations for both Linux and Windows systems.

This library is ideal for applications that need to communicate with hardware devices through serial ports, such as:

- IoT devices
- Microcontrollers (Arduino, ESP32, etc.)
- Industrial equipment
- Legacy hardware with serial interfaces
- Embedded systems

Requirements
------------

[](#requirements)

- PHP 8.1 or higher (uses PHP enums)
- ReactPHP event loop
- PSR-3 compatible logger (optional)
- Appropriate permissions to access serial port devices

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require zeran/serial-port
```

Basic Usage
-----------

[](#basic-usage)

Here's a simple example of how to use the library:

```
