PHPackages                             lepiaf/serialport - 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. lepiaf/serialport

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

lepiaf/serialport
=================

Serial port access convenience class

v1.1.0(5y ago)5510.5k↓42.9%14[2 issues](https://github.com/lepiaf/serialport/issues)[1 PRs](https://github.com/lepiaf/serialport/pulls)MITPHP

Since Oct 31Pushed 5y ago5 watchersCompare

[ Source](https://github.com/lepiaf/serialport)[ Packagist](https://packagist.org/packages/lepiaf/serialport)[ RSS](/packages/lepiaf-serialport/feed)WikiDiscussions master Synced 1mo ago

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

SerialPort
==========

[](#serialport)

Connect to serial port with PHP

Inspired by [PHP-Serial](https://github.com/Xowap/PHP-Serial), I simplify it and include composer.json to install via composer.

Actually, it works on linux. This library is suitable for working with Arduino.

Install via composer
--------------------

[](#install-via-composer)

```
composer require "lepiaf/serialport"

```

How to use
----------

[](#how-to-use)

You can check a full example in [example](example) folder. It contains a basic Arduino sketch and php file to read it.

Instantiate a new SerialPort object with a parser and configure tty.

```
