PHPackages                             imedge/protocol-netstring - 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. imedge/protocol-netstring

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

imedge/protocol-netstring
=========================

Asynchronous NetString implementation for AMPHP

v0.4.0(1y ago)07331MITPHPPHP &gt;=8.1

Since Mar 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/im-edge/protocol-netstring)[ Packagist](https://packagist.org/packages/imedge/protocol-netstring)[ RSS](/packages/imedge-protocol-netstring/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (1)

IMEdge\\Protocol\\NetString
===========================

[](#imedgeprotocolnetstring)

This library implements the [NetString](https://en.wikipedia.org/wiki/Netstring)protocol and provides a **NetStringReader**, a **NetStringWriter** and a bidirectional **NetStringConnection** implementation for [AMPHP](https://amphp.org/).

[![Coding Standards](https://github.com/im-edge/protocol-netstring/actions/workflows/CodingStandards.yml/badge.svg)](https://github.com/im-edge/protocol-netstring/actions/workflows/CodingStandards.yml)[![Unit Tests](https://github.com/im-edge/protocol-netstring/actions/workflows/UnitTests.yml/badge.svg)](https://github.com/im-edge/protocol-netstring/actions/workflows/UnitTests.yml)[![Static Analysis](https://github.com/im-edge/protocol-netstring/actions/workflows/StaticAnalysis.yml/badge.svg)](https://github.com/im-edge/protocol-netstring/actions/workflows/StaticAnalysis.yml)[![PHPStan Level 9](https://camo.githubusercontent.com/83dd3d35cebed0eab9ee97ff1a5849c1344cda6a8ee9cac2cda20f5aa55b67bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Minimum PHP Version: 8.1](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)[![License: MIT](https://camo.githubusercontent.com/8a11908f4379b5d37606431177a00798e89608c7a72468ddba15a159141c9b65/68747470733a2f2f706f7365722e707567782e6f72672f696d656467652f70726f746f636f6c2d6e6574737472696e672f6c6963656e7365)](https://choosealicense.com/licenses/mit/)[![Version](https://camo.githubusercontent.com/d4124bbd6748bc6c729a97d0fa3871c96d8cc44e84b7cf5f4d9bfe953ded72ea/68747470733a2f2f706f7365722e707567782e6f72672f696d656467652f70726f746f636f6c2d6e6574737472696e672f76657273696f6e)](https://packagist.org/packages/imedge/protocol-netstring)

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

[](#installation)

This package can be installed as a Composer dependency on PHP 8.1 and later.

```
composer require imedge/protocol-netstring
```

Usage
-----

[](#usage)

### NetStringReader

[](#netstringreader)

#### Sample Code

[](#sample-code)

```
