Download the PHP package imatic/notification without Composer
On this page you can find all versions of the php package imatic/notification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imatic/notification
More information about imatic/notification
Files in imatic/notification
Package notification
Short Description Simple library for sending reliable messages among apps
License MIT
Homepage http://imatic.cz
Informations about the package notification

|
Imatic Notification
Application for simplifying using message queues
Configuration
Library needs 2 configuration options to by specified by you. How to specify them depends on your service container (see Acessing to the services section).
- imatic_notification_params
- parameters of the connection to the broker
- imatic_notification.logger
- logger implementing interface of psr log
- in our examples below, we did use NullLogger, which will log nothing - we highly discourage from usage if this logger in production since you'll have no Idea what went wrong if something wrong happend
Interface of the library
You will work with 2 interfaces Publisher for publishing messages into queues and Consumer to consume messages published by publisher.
These 2 interfaces are implemented by service imatic_notification.connection
Accessing to the services
It is advised to use one container to create connection object for you from definition file "config/services.yml". Below you can see 2 of many possible ways to go.
Using Symfony
To load services for Symfony, you need to edit your your app/config/config.yml
And then you can access to the services from your Symfony container
Usage example
All versions of notification with dependencies
symfony/options-resolver Version ^6.2
psr/log Version *