Download the PHP package phpdot/routing-rt without Composer

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

phpdot/routing-rt

Real-time routing for WebSocket and SSE, layered on phpdot/routing. RouterRT extends the HTTP Router and adds ws() and sse() alongside get()/post(), so the same router — and the same groups, middleware, names, and parameter constraints — serves HTTP, WebSocket, and Server-Sent Events. WebSocket channels dispatch through phpdot/realtime; SSE streams through an SSEWriter.

Table of Contents

Requirements

Requirement Constraint
PHP >= 8.5
phpdot/contracts ^0.5
phpdot/realtime ^0.5
phpdot/routing ^0.5
psr/container ^2.0
psr/http-factory ^1.0
psr/http-message ^2.0
psr/http-server-handler ^1.0
psr/http-server-middleware ^1.0

phpdot/container is a dev-only suggestion — the #[Singleton] attribute on RouterRT is inert until a phpdot application reflects it.

Installation

Usage

Groups, middleware, names, and where constraints all work across the three, and the same path can serve both HTTP and WebSocket without collision:

list() returns every route (HTTP, WS, SSE); compile() compiles them all.

Architecture

RouterRT extends the HTTP Router, so HTTP dispatch is unchanged. ws() registers a WsRoute whose frames are dispatched through the phpdot/realtime Hub (with Ack for request/response over the socket); sse() registers a handler that streams through an SSEWriter. Because it is a Router, one binding can make RouterRT the application's router everywhere.

Testing

License

MIT.

This repository is a read-only mirror, generated by CI from phpdot/monorepo. Pull requests and issues belong in the monorepo.


All versions of routing-rt with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
phpdot/contracts Version ^0.6
phpdot/realtime Version ^0.6
phpdot/routing Version ^0.6
psr/container Version ^2.0
psr/http-factory Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
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 phpdot/routing-rt contains the following files

Loading the files please wait ...