Download the PHP package gos/pubsub-router-bundle without Composer

On this page you can find all versions of the php package gos/pubsub-router-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 pubsub-router-bundle

GosPubSubRouterBundle

Latest Stable Version Latest Unstable Version Total Downloads License Run Tests

About

GosPubSubRouterBundle is a Symfony Bundle whose goal is to plug any logic behind pubsub channel. When you use PubSub pattern you will make face to a problem, rely channels with business logic. PubSub router is here to make the junction between channel and business logic.

Support

Version Status Symfony Versions
1.x No Longer Supported 3.4, 4.4, 5.2-5.4
2.x Actively Supported 4.4, 5.3-5.4, 6.0
3.x In Development 5.3-5.4, 6.0

Features

Installation

Add the bundle to your project using Composer:

Once installed, you will need to add the bundle to your project.

If your project is based on Symfony Flex, the bundle should be automatically added to your config/bundles.php file:

If your project is based on the Symfony Standard Edition, you will need to add the bundle to your Kernel's registerBundles method by editing app/AppKernel.php:

Bundle configuration

Below is an example bundle configuration. For projects based on Symfony Flex, this should be stored in config/packages/gos_pubsub_router.yaml. For projects based on Symfony Standard Edition, this should be added to app/config/config.yml.

NOTE : Each router is insulated. If you have several routers in the same class you will need to inject each router that you need.

Usage

Routing definition

Example with websocket pubsub

Example with redis pubsub

NOTE : The handler is not typehinted, this allows you to define the handler callback in any way you'd like (such as an array to call a method on a class or a string to call a PHP function or a service from the container).

Use router

Let's generate a route !

Match your first route !

What about mismatch?

Router CLI

php bin/console gos:prouter:debug -r websocket dump all registered routes for websocket router

License

MIT, See LICENSE file in the root of project.


All versions of pubsub-router-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
symfony/config Version ^4.4.42 || ^5.4 || ^6.0
symfony/console Version ^4.4.42 || ^5.4 || ^6.0
symfony/dependency-injection Version ^4.4.42 || ^5.4 || ^6.0
symfony/deprecation-contracts Version ^2.1 || ^3.0
symfony/http-foundation Version ^4.4.42 || ^5.4 || ^6.0
symfony/http-kernel Version ^4.4.42 || ^5.4 || ^6.0
symfony/polyfill-php80 Version ^1.22
symfony/yaml Version ^4.4.42 || ^5.4 || ^6.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 gos/pubsub-router-bundle contains the following files

Loading the files please wait ....