Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Stomp Bundle Laravel Package

activpik/stomp-bundle

Symfony bundle integrating a STOMP client for message brokers. Configure multiple connections and named producers, enable sandbox mode for testing, create messages via a factory, and send them through the activpik_stomp service from your controllers.

View on GitHub
Deep Wiki
Context7

ActivpikStompBundle

Symfony StompClient Integration.

Download this bundle using composer :

In your composer.json add :

"activpik/stomp-bundle": "dev-master" 

In your config.yml file add theses lines

activpik_stomp:
  sandbox: false
  connections:
    kalyzee_messenging :
      host: localhost
      port: 61613
  producers:
      activpik_producer: 
        destination: activpik/producer
        connection: kalyzee_messenging
      activpik_producer2: 
        destination: activpik/producer2
        connection: kalyzee_messenging

You can define a connection to a message broker by adding an connections item. You can define a producer by adding an item to "producers".

Sandbox allows you to test your application without send message.

Usage in a Symfony2 Controller

First you have to create a message :

 $message = $this->container->get("activpik_stomp_message_factory")->createMessage(array("id" => "id", "value"=>"value"));

After you can send it with this command :

$this->container->get("activpik_stomp")->send("activpik_producer", $message);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui