Download the PHP package magdv/roadrunner-symfony-bundle without Composer

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

RoadRunner Runtime for Symfony

Yet another runtime for Symfony and RoadRunner.

Installation

Usage

Define the environment variable APP_RUNTIME in .rr.yaml and set up rpc plugin:

.rr.yaml

Don't forget to add the RR_RPC to your .env:

Configuration

fluffy_discord_road_runner.yaml

Running behind a load balancer or a proxy

If you want to use REMOTE_ADDR as trusted proxy, replace it with 0.0.0.0/0 instead or else your trusted headers will not work.

Symfony is using the $_SERVER['REMOTE_ADDR'] to find out the proxy address, but in the context of RoadRunner, $_SERVER contains only environment variables and the REMOTE_ADDS is missing.

Response/file streaming

Build-in full support for Symfony's BinaryFileResponse and StreamedJsonResponse. The StreamedResponse needs one little change to be fully streamable - you have to change the callback to a \Generator, replacing all echo with yield. Look at the example:

Sessions

Currently, Symfony might sometimes struggle with sessions in worker mode, like loosing logged user or the opposite, leaking logged user session to another request due to missing globals (explained at the end).

Bundle introduces FluffyDiscord\RoadRunnerBundle\Session\WorkerSessionStorageFactory, that handles native session correctly. Register it manually if you happen to run into these issues, for example in framework.yaml:

Sentry

Built in support for Sentry. Just install & configure it as you normally do.

Centrifugo (websockets)

To enable Centrifugo you need to add roadrunner-php/centrifugo package.

Bundle is using Symfony's Event dispatcher. You can create event listener for any event extending FluffyDiscord\RoadRunnerBundle\Event\Centrifugo\CentrifugoEventInterface:

Example usage:

Be aware that if you do not set any response, bundle will send DisconnectResponse back by default.

Developing with Symfony and RoadRunner

Jobs

Надо реализовать интерфейс JobsRunner. В методе run обработать входящие задачи. Как? Это уже на ваше усмотрение. Любой эксепшен вернет задачу в очередь.

Пример регистрации сервиса в DI services.yaml

Debugging (recommendations)

With RoadRunner you cannot simply dump and die, because nothing will be printed. I would like to introduce Buggregator to work around that. As a bonus it can also work as a mailtrap or testing Sentry locally

Credits

Inspiration taken from existing solutions like Baldinof's Bundle and Nyholm's Runtime


All versions of roadrunner-symfony-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-sockets Version *
nyholm/psr7 Version ^1.8
spiral/roadrunner Version ^v2024
symfony/dependency-injection Version ^7.1
symfony/http-kernel Version ^7.1
symfony/psr-http-message-bridge Version ^7.1
symfony/runtime Version ^7.1
symfony/framework-bundle Version ^7.1
spiral/roadrunner-worker Version ^v3
spiral/roadrunner-http Version ^v3
spiral/roadrunner-cli Version ^v2.6
spiral/roadrunner-jobs Version ^4.6
temporal/sdk Version ^2.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 magdv/roadrunner-symfony-bundle contains the following files

Loading the files please wait ....