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.
althinect/enum-permission
andydefer/laravel-actions
aimeos/prisma
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor