commit 03cfbd929e04e4eba42d1872542128aee351b8c8 Author: Mr·x Date: Tue Aug 31 17:46:05 2021 +0800 e diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..2898998 --- /dev/null +++ b/composer.json @@ -0,0 +1,25 @@ +{ + "name": "game-worker/kiri-rpc", + "description": "kiri-rpc", + "authors": [ + { + "name": "XiangLin", + "email": "as2252258@163.com" + } + ], + "license": "MIT", + "require": { + "php": ">=8.0", + "ext-json": "*", + "ext-rdkafka": "*", + "psr/event-dispatcher": "^1.0" + }, + "autoload": { + "psr-4": { + "Kiri\\Rpc\\": "src/" + } + }, + "require-dev": { + "kwn/php-rdkafka-stubs": "^2.0" + } +} diff --git a/src/Service.php b/src/Service.php new file mode 100644 index 0000000..cfc4269 --- /dev/null +++ b/src/Service.php @@ -0,0 +1,83 @@ +