PHPackages                             xialeistudio/io - 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. xialeistudio/io

ActiveLibrary

xialeistudio/io
===============

user-friendly binary data operation library

1.0.0(6y ago)410MITPHPPHP &gt;=7.0

Since Jan 17Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

php-io
======

[](#php-io)

user-friendly binary data operation library.

As you know, `pack`/`unpack` is not user-friendly to operate binary data, so that's why this project developed.

You can use this project to develop binary protocol client(eg. kafka, memcached, etc...)

[中文文档](README-CN.md)

Install
-------

[](#install)

```
composer require xialeistudio/io

```

Features
--------

[](#features)

- Operate binary string
- Operate file resource(eg. File, Sockets, etc.)

Supported Data Types
--------------------

[](#supported-data-types)

TypeAliasByte Lengthunsigned charuint81signed charint81unsigned shortuint162signed shortint162unsigned intuint324signed intint324string--> all numbers support big endian and little endian

Examples
--------

[](#examples)

### BinaryString Example

[](#binarystring-example)

> This example simply operate data with binary string in memory.

```
