imponeer/queue-interop-connection-factory-helper

Helper that creates queue-interop connection factory based on DSN

v0.2.0 2025-07-07 23:25 UTC

This package is auto-updated.

Last update: 2025-07-07 23:27:33 UTC


README

License GitHub release Packagist

Queue-Interop Connection Factory Helper

A PHP library that simplifies creating queue-interop connection factories from DSN (Data Source Name) strings. This helper allows you to easily configure and instantiate queue connections for various message queue systems using a unified DSN format.

Installation

composer require imponeer/queue-interop-connection-factory-helper

Supported Queue Transports

To use a specific transport, you must also include the corresponding library in your project:

Transport Prefix Library
AMQP amqp enqueue/amqp-ext
enqueue/amqp-lib
enqueue/amqp-bunny
Beanstalk beanstalk enqueue/pheanstalk
Stomp stomp enqueue/stomp
Amazon Simple Queue Service (SQS) sqs enqueue/sqs
Google PubSub gps enqueue/gps
Apache Kafka kafka enqueue/rdkafka
Redis redis enqueue/redis
MongoDB mongodb enqueue/mongodb
Gearman gearman enqueue/gearman
MySQL mysql enqueue/dbal
File file enqueue/fs
Null null enqueue/null
Wamp wamp
ws
enqueue/wamp

Usage

use Imponeer\QueueInteropConnectionFactoryHelper;

$context = QueueInteropConnectionFactoryHelper::createContext('file:');

Development

This project includes several development tools to maintain code quality:

Run tests with testdox output:

composer test

Check code style (PSR-12):

composer phpcs

Fix code style issues automatically:

composer phpcbf

Run static analysis:

composer phpstan

API Documentation

Full API documentation is available in the repository wiki. Documentation is automatically updated with every release.

How to Contribute

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run the development tools to ensure code quality
  5. Submit a pull request

For bug reports or questions, please use the issues tab.