PHPackages                             innmind/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. [HTTP &amp; Networking](/categories/http)
4. /
5. innmind/io

ActiveLibrary[HTTP &amp; Networking](/categories/http)

innmind/io
==========

High level abstraction for streams and sockets

4.0.0(3mo ago)167.1k↓27.3%[2 issues](https://github.com/Innmind/io/issues)8MITPHPPHP ~8.4CI passing

Since Feb 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Innmind/io)[ Packagist](https://packagist.org/packages/innmind/io)[ Docs](http://github.com/innmind/io)[ RSS](/packages/innmind-io/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (25)Used By (8)

io
==

[](#io)

[![Build Status](https://github.com/innmind/io/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/innmind/io/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/420ef3d5b5757c5f1c647034281d042a28128e7207a614fa4ecf59a7ca202622/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f696f2f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/io)[![Type Coverage](https://camo.githubusercontent.com/3ea063c20c56a8a3d19e1bbc978cdbf1f151324c72e5dae4028e2d6e1db85865/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f696f2f636f7665726167652e737667)](https://shepherd.dev/github/innmind/io)

High level abstraction to work with files and sockets in a declarative way.

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

[](#installation)

```
composer require innmind/io
```

Usage
-----

[](#usage)

```
use Innmind\IO\IO;
use Innmind\Url\Path;
use Innmind\Immutable\Str;

$chunks = IO::fromAmbienAuthority()
    ->files()
    ->read(Path::of('/some/file.ext'))
    ->toEncoding(Str\Encoding::ascii)
    ->chunks(8192); // max length of each chunk
```

The `$chunks` variable is a `Innmind\Innmutable\Sequence` containing `Innmind\Immutable\Str` values, where each value is of a maximum length of `8192` bytes.

Documentation
-------------

[](#documentation)

Full documentation can be found at .

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance58

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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 ~50 days

Recently: every ~40 days

Total

22

Last Release

113d ago

Major Versions

1.0.0 → 2.0.02023-09-17

2.7.0 → 3.0.02025-04-13

3.5.1 → 4.0.02026-01-25

PHP version history (3 changes)1.0.0PHP ~8.1

2.0.0PHP ~8.2

4.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (313 commits)")

---

Tags

streamSocket

### Embed Badge

![Health badge](/badges/innmind-io/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-io/health.svg)](https://phpackages.com/packages/innmind-io)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.0B3.2k](/packages/guzzlehttp-psr7)[php-http/multipart-stream-builder

A builder class that help you create a multipart stream

29490.9M224](/packages/php-http-multipart-stream-builder)[ezimuel/guzzlestreams

Fork of guzzle/streams (abandoned) to be used with elasticsearch-php

176108.6M3](/packages/ezimuel-guzzlestreams)[ringcentral/psr7

PSR-7 message implementation

15322.2M62](/packages/ringcentral-psr7)[fresh/centrifugo-bundle

Provides communication with web-socket server Centrifugo in Symfony applications.

83375.3k](/packages/fresh-centrifugo-bundle)[denis660/laravel-centrifugo

Centrifugo broadcaster for laravel

113164.7k](/packages/denis660-laravel-centrifugo)

PHPackages © 2026

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