PHPackages                             fawno/php-serial - 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. fawno/php-serial

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

fawno/php-serial
================

Serial port access convenience class

2.0.0(4y ago)139321MITPHPPHP &gt;=7.4.0

Since Oct 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/fawno/PHP-Serial)[ Packagist](https://packagist.org/packages/fawno/php-serial)[ RSS](/packages/fawno-php-serial/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)DependenciesVersions (10)Used By (1)

PHP-Serial
==========

[](#php-serial)

[![GitHub license](https://camo.githubusercontent.com/d93b1821f3941a00cb93d6314b2bcfaec62dfba8f0ff79b2ad2ccf8a42cfc034/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661776e6f2f5048502d53657269616c)](https://github.com/fawno/PHP-serial/blob/master/LICENSE)[![GitHub release](https://camo.githubusercontent.com/c91c4439d2157ccfcb6bcec874ec85ed7a5a24e1108ded8f7ac45448b66952c8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6661776e6f2f5048502d53657269616c)](https://github.com/fawno/PHP-serial/releases)[![Packagist](https://camo.githubusercontent.com/dc2f505f404ce60257a77fb6379a45b2b49fedbb16e7be532d51021ef6d9e721/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661776e6f2f7068702d73657269616c)](https://packagist.org/packages/fawno/php-serial)[![PHP](https://camo.githubusercontent.com/4dc65d3ad1331f3564c20b64bd97d78e5465d5491383adeb3240efb9943b3c48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6661776e6f2f7068702d73657269616c)](https://php.net)

Serial port access convenience class

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

[](#requirements)

- PHP Pecl dio extension (&gt;= 0.2.1) for SerialDio.

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

[](#installation)

You can install this plugin into your application using [composer](https://getcomposer.org):

```
  composer require fawno/php-serial

```

Usage
-----

[](#usage)

```
  require 'vendor/autoload.php';

  use Fawno\PhpSerial\SerialDio;
  use Fawno\PhpSerial\SerialConfig;
  use Fawno\PhpSerial\SerialBaudRates;
  use Fawno\PhpSerial\SerialStopBits;
  use Fawno\PhpSerial\SerialParity;
  use Fawno\PhpSerial\SerialDataBits;

  // Create default serial config
  $config = new SerialConfig;

  // Set Data Rate
  $config->setBaudRate(SerialBaudRates::B9600);

  // Set Data Bits
  $config->setDataBits(SerialDataBits::CS8);

  // Set Stop Bits
  $config->setStopBits(SerialStopBits::ONE);

  // Set Parity
  $config->setParity(SerialParity::NONE);

  // Set Flow Control
  $config->setFlowControl(true);

  // Create SerialDio object with COM3 as device
  $serial = new SerialDio('COM3', $config);

  // Open device
  $serial->open('r+b');

  // Set Blocking
  $serial->setBlocking(0);

  // Set Timeout
  $serial->setTimeout(0, 0);

  // Send data
  $serial->send($data);

  // Read data
  $data = $serial->read();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~36 days

Total

8

Last Release

1615d ago

Major Versions

0.1.2 → 1.0.02021-10-13

1.0.1 → 2.0.02022-03-06

### Community

Maintainers

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

---

Top Contributors

[![alphp](https://avatars.githubusercontent.com/u/8992091?v=4)](https://github.com/alphp "alphp (17 commits)")

---

Tags

phpserialserial-communicationserial-portserialport

### Embed Badge

![Health badge](/badges/fawno-php-serial/health.svg)

```
[![Health](https://phpackages.com/badges/fawno-php-serial/health.svg)](https://phpackages.com/packages/fawno-php-serial)
```

###  Alternatives

[litecms/page

Page package for litecms.

1852.5k1](/packages/litecms-page)[thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

2011.6k](/packages/thisisbd-silverstripe-maintenance-mode)

PHPackages © 2026

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