Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 21, 2024 via composer

symfony/amqp-messenger v5.4.19

Symfony AMQP extension Messenger Bridge
Package summary
Share
0
issues
1
license
8
MIT
Package created
28 Jan 2020
Version published
1 Jan 2023
Maintainers
1
Total deps
8
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
psr/clock@1.0.0
psr/log@3.0.0
symfony/amqp-messenger@v5.4.19
symfony/clock@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/messenger@v6.4.7
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of symfony/amqp-messenger 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/deprecation-contractsv3.5.0-MIT
prod
symfony/messengerv6.4.7-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/amqp-messenger do?

Symfony's AMQP Messenger offers seamless Advanced Message Queuing Protocol (AMQP) integration for the Symfony Messenger. In the world of distributed microservices, handling communication between them becomes a vital aspect, and messaging services like AMQP provide a common platform for these microservices to talk to each other. Symfony's AMQP messenger leverages this by providing a way to send and receive messages through AMQP directly from your Symfony applications.

How do you use symfony/amqp-messenger?

To effectively utilize Symfony's AMQP Messenger, you first need to install it using Composer, by running composer require symfony/amqp-messenger. After that, it's about configuring your Symfony application to actually make use of the AMQP services. You will need to configure your messenger.yaml file and include AMQP as a transport mechanism. Here's a basic example of how you can configure it:

# config/packages/messenger.yaml
framework:
    messenger:
        transports:
            amqp: "%env(MESSENGER_TRANSPORT_DSN)%"
        routing:
            'App\Message\YourMessage': amqp

In this configuration, App\Message\YourMessage is your custom message class that you desire to send through AMQP. Make sure to replace %env(MESSENGER_TRANSPORT_DSN)% with the appropriate DSN for your AMQP service.

Once you've done this, in your application's code, you can dispatch your messages as follows:

use App\Message\YourMessage;
use Symfony\Component\Messenger\MessageBusInterface;

class YourClass
{
    private $bus;

    public function __construct(MessageBusInterface $bus)
    {
        $this->bus = $bus;
    }

    public function yourMethod()
    {
        // Your business logic here...

        // Create and dispatch YourMessage
        $this->bus->dispatch(new YourMessage($yourData));
    }
}

Where are the symfony/amqp-messenger docs?

The documentation for Symfony's AMQP Messenger can be found at the Symfony documentation website. Please note that issues related to this package are reported at the main Symfony repository and to contribute or send pull requests you should also target the main Symfony repository.