PHPackages                             fynn/fynn - 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. fynn/fynn

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

fynn/fynn
=========

High-performance, event-driven asynchronous I/O library for PHP 8.1+

0.0.1(2d ago)22↑2900%MITPHPPHP &gt;=8.1

Since Jun 7Pushed 2d agoCompare

[ Source](https://github.com/fitri-hy/Fynn)[ Packagist](https://packagist.org/packages/fynn/fynn)[ RSS](/packages/fynn-fynn/feed)WikiDiscussions main Synced yesterday

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

Fynn Documentation [ID](./README-ID.md)
=======================================

[](#fynn-documentation-id)

> Fynn is a modern async I/O library for PHP 8.1+ for scalable, non-blocking apps.

Introduction
------------

[](#introduction)

Fynn is a high-performance, event-driven asynchronous I/O library for PHP 8.1+. It provides a fully non-blocking event loop, promise-based programming model, and comprehensive networking capabilities.

### Why Fynn?

[](#why-fynn)

- **Modern Architecture**: Built from the ground up for PHP 8.1+ with Fibers support
- **Production Ready**: Fully implemented with no placeholders or stubs
- **Complete System**: Everything is integrated - promises, streams, networking, and HTTP
- **No External Dependencies**: Uses only PHP built-in functions
- **Fiber Support**: Leverages PHP 8.1 Fibers for concurrency
- **Backpressure Safe**: Proper stream buffer management
- **Cancellation System**: Full cancellation token support

### Key Features

[](#key-features)

- Fully non-blocking Event Loop engine
- Promise-based asynchronous programming model
- TCP networking (client/server) with async streams
- HTTP client built on top of the event loop
- Fiber-based concurrency (PHP 8.1+)
- Backpressure-safe stream handling
- Cancellation and timeout system
- DNS resolution layer
- Complete error handling

### Quick Comparison

[](#quick-comparison)

FeatureFynnReactPHPAmpPHP 8.1+ Support✓Limited✓Fibers✓✗✓No Dependencies✓✗✓Modern Architecture✓Legacy✓Complete Integration✓Partial✓---

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

[](#installation)

### Requirements

[](#requirements)

- PHP 8.1 or higher
- Required PHP extensions:
    - `json`
    - `mbstring`
    - `sockets`
- Composer (for dependency management)

### Composer Installation

[](#composer-installation)

```
composer require fynn/fynn
```

### Manual Installation

[](#manual-installation)

1. Clone or download the repository
2. Run `composer install` to generate the autoloader
3. Include the autoloader in your project:

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

### Verifying Installation

[](#verifying-installation)

Create a simple test script:

```
