Download the PHP package reactphp-x/tunnel-stream without Composer

On this page you can find all versions of the php package reactphp-x/tunnel-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tunnel-stream

Tunnel Stream

一个基于 ReactPHP 的流式隧道通信库,支持在不同进程间传输数据流和执行闭包函数。

特性

安装

快速开始

1. 创建隧道流

2. 执行远程闭包

3. 心跳检测

进阶用法

子进程通信

在父子进程间建立隧道流通信是一个常见的使用场景。以下是一个完整的示例:

主进程 (process.php)

子进程 (child_process_init.php)

最佳实践

1. 错误处理

2. 资源管理

3. 性能优化

4. 安全考虑

API 文档

TunnelStream 类

构造函数

参数说明:

方法

run

执行远程闭包函数,返回一个双向流。

ping

发送心跳包并等待响应。

参数:

close

关闭所有流。

测试

运行测试套件:

依赖

贡献

欢迎提交 Pull Request 和 Issue。

许可证

MIT License


All versions of tunnel-stream with dependencies

PHP Build Version
Package Version
Requires react/stream Version ^1.4
laravel/serializable-closure Version ^2.0
ramsey/uuid Version ^4.7
rybakit/msgpack Version ^0.9.1
react/promise Version ^3.2
react/promise-timer Version ^1.11
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package reactphp-x/tunnel-stream contains the following files

Loading the files please wait ...