Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nethergamesmc/php-quiche

A Quiche-based QUIC implementation for PHP using FFI
https://github.com/nethergamesmc/php-quiche

Last synced: 24 days ago
JSON representation

A Quiche-based QUIC implementation for PHP using FFI

Awesome Lists containing this project

README

        

# PHP-Quiche
A [Quiche](https://github.com/cloudflare/quiche)-based [QUIC](https://quicwg.org/) implementation for PHP

## Installation
```bash
composer require nethergamesmc/quiche
```

Requires FFI to be enabled & the quiche library to be installed.

## Usage

### Client
```php
getConfig();
$clientConfig->enableBidirectionalStreams();

$clientSocket->connect();

while(true){
$clientSocket->tick();
}
```

### Server
```php
getConfig();
$serverConfig->loadPrivKeyFromFile($pathToKey);
$serverConfig->loadCertChainFromFile($pathToCert);
$serverConfig->enableBidirectionalStreams();

while(true){
$serverSocket->tick();
}
```