aaronicsubstances/kabomu
最新稳定版本:v0.9.2
Composer 安装命令:
composer require aaronicsubstances/kabomu
包简介
Kabomu library for PHP
README 文档
README
This is a port of the Kabomu library originally written in C#.NET to PHP 8.1.30 and above (first tested with PHP CLI 8.3.6 and Ubuntu 24.04.1 LTS).
In a nutshell, Kabomu enables building quasi web applications that can connect endpoints within localhost and even within an OS process, through IPC mechanisms other than TCP.
See the repository for the .NET version for more details.
Install
composer require aaronicsubstances/kabomu
Usage
The entry classes of the libary are StandardQuasiHttpClient and StandardQuasiHttpServer.
See Examples folder for sample file serving programs. Each of those programs demonstrates an IPC mechanism as represented by main files named with "-client" or "-server" suffix. E.g. to run the TCP client example, run
php tcp-client.php
The sample programs come in pairs: a client program and corresponding server program. The server program must be started first. By default a client program uploads all files from a logs/client folder in the current directory, to a folder created in a logs/server folder of the server program's current directory.
The .env-example config file indicates how to change the default client and server endpoints (TCP ports or Unix domain socket paths), as well as the directories of upload and saving.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2024-11-27