Initial commit

This commit is contained in:
Christopher Vagnetoft
2026-04-02 22:29:35 +02:00
commit 62a1167055
31 changed files with 3759 additions and 0 deletions

13
examples/jsonproto.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\React\Protocol\Json\JsonProtocol;
$proto = new JsonProtocol(
frameSeparator: "\n",
prependSizeBytes: 0,
);
echo $proto->packFrame([ 'hello'=>'world', 'answer'=>42 ]);