Download the PHP package spiral/roadrunner-bridge without Composer

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

RoadRunner v2 bridge to Spiral Framework

PHP Version Require Latest Stable Version phpunit psalm Codecov Total Downloads StyleCI

Requirements

Make sure that your server is configured with following PHP version and extensions:

Installation

To install the package:

After package install you need to add bootloaders from the package in your application on the top of the list.

Usage

TCP

RoadRunner includes TCP server and can be used to replace classic TCP setup with much greater performance and flexibility.

Bootloader

Add Spiral\RoadRunnerBridge\Bootloader\TcpBootloader to application bootloaders list:

This bootloader adds a dispatcher and necessary services for TCP to work. Also, using the addService and addInterceptors methods can dynamically add services to TCP servers and configure interceptors.

Configuration

Configure tcp section in the RoadRunner .rr.yaml configuration file with needed TCP servers. Example:

Create configuration file app/config/tcp.php. In the configuration, it's required to specify the services that will handle requests from a specific TCP server. Optionally, interceptors can be added for each specific server. With the help there, can add some logic before handling the request in service. Configuration example:

Services

A service must implement the interface Spiral\RoadRunnerBridge\Tcp\Service\ServiceInterface with one required method handle. After processing a request, the handle method must return the Spiral\RoadRunnerBridge\Tcp\Response\ResponseInterface object with result (RespondMessage, CloseConnection, ContinueRead).

Example:

The service can be generated using the Scaffolder component. Make sure that bootloader Spiral\RoadRunnerBridge\Bootloader\ScaffolderBootloader is added in your application and run:

This will generate service TestService in the folder Endpoint/Tcp/Service/TestService.php.

Note Namespace (and generation path) can be configured. Read more about Scaffolder component.


Note Read more about RoadRunner configuration on official site https://roadrunner.dev.

License:

MIT License (MIT). Please see Spiral Scout.


All versions of roadrunner-bridge with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
grpc/grpc Version ^1.57
psr/http-factory Version ^1.1
psr/simple-cache Version ^3.0
roadrunner-php/app-logger Version ^1.0
roadrunner-php/centrifugo Version ^2.0
roadrunner-php/lock Version ^1.0
spiral/grpc-client Version ^1.0
spiral/hmvc Version ^3.14
spiral/roadrunner-grpc Version ^3.3
spiral/roadrunner-http Version ^3.5
spiral/roadrunner-jobs Version ^4.4
spiral/roadrunner-kv Version ^4.0
spiral/roadrunner-metrics Version ^3.0
spiral/roadrunner-tcp Version ^3.1 || ^4.0
spiral/scaffolder Version ^3.13
spiral/serializer Version ^3.13
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 spiral/roadrunner-bridge contains the following files

Loading the files please wait ....