Download the PHP package localzet/tunnel without Composer

On this page you can find all versions of the php package localzet/tunnel. 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

Localzet Tunnel

Русская документация

A client/server messaging channel for Localzet Server processes.

Status and compatibility

Tunnel is a small TCP message broker for PHP applications built on Localzet Server. It supports channel publish/subscribe and in-memory work queues.

Compatibility

Version 3 targets Localzet Server 7 and PHP 8.1 or newer. The previous 2.x release line targets Server 4 and is not compatible with Server 7. Review the API and delivery differences before migrating an application.

Messages and queues are held in broker memory. Queues are not durable, and delivery is not acknowledged or retried. Run one broker process for a given channel namespace; multiple independent brokers do not share subscriptions or queue state.

PHP object deserialization is disabled by default. To preserve object payloads on a trusted, isolated network, enable it on both ends: pass allowObjectSerialization: true as the third Server constructor argument and call Client::allowObjectSerialization() before connecting. Never enable object deserialization for untrusted peers.

Tunnel does not provide client authentication or encryption. Bind it to a private interface and apply network-level access controls. Do not expose the listener directly to the public Internet.

Dependencies

Installation

Use the 3.x release line with Server 7. The 2.x release line is for Server 4 applications.

Quick start

Start a broker on a private host:

Connect Tunnel clients from Localzet Server workers and subscribe to a channel:

Client uses Localzet Server's asynchronous connection and timer APIs. Call it from an application running under Server's event loop. For ordinary CLI programs, use a protocol-aware client or run the integration through Server; Client does not provide a synchronous standalone API.

The broker accepts JSON messages and the legacy PHP serialization format. New clients should use JSON-compatible scalar, array and object-free payloads. Object payloads require the explicit trusted-network opt-in described above.

Behavior and limits

Development checks

The integration test starts a local broker and checks publish, queue delivery, malformed input and disabled object deserialization. It does not establish production readiness or test multi-host deployment.

Historical usage notes need verification against the current API.

Author and license

Ivan Zorin (localzet), https://www.localzet.com. Source: https://github.com/localzet/Tunnel. AGPL-3.0-or-later; LICENSE. Original copyright and third-party licenses remain applicable.

Security


All versions of tunnel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
localzet/server Version ^7.2.3
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 localzet/tunnel contains the following files

Loading the files please wait ...