Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nethergamesmc/php-quiche
- Owner: NetherGamesMC
- License: bsd-2-clause
- Created: 2024-01-30T14:55:49.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-04-11T10:43:58.000Z (9 months ago)
- Last Synced: 2024-04-11T11:45:41.216Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 173 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
}
```