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.
composer require imponeer/queue-interop-connection-factory-helper
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 |
use Imponeer\QueueInteropConnectionFactoryHelper;
$context = QueueInteropConnectionFactoryHelper::createContext('file:');This project includes several development tools to maintain code quality:
Run tests with testdox output:
composer testCheck code style (PSR-12):
composer phpcsFix code style issues automatically:
composer phpcbfRun static analysis:
composer phpstanFull API documentation is available in the repository wiki. Documentation is automatically updated with every release.
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch
- Make your changes
- Run the development tools to ensure code quality
- Submit a pull request
For bug reports or questions, please use the issues tab.