casnerano / amqp-topic-match
A utility for matching routing keys to AMQP-style topic patterns.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/casnerano/amqp-topic-match
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^v5.3
This package is auto-updated.
Last update: 2025-12-29 03:27:04 UTC
README
A utility for matching routing keys to AMQP-style topic patterns.
Usage
use \Casnerano\AMQPTopicMatch\AMQPTopicMatch; $amqp_topic_match = new AMQPTopicMatch(); $amqp_topic_match->match("a.b.c.d", "*.b.#"); # return true $amqp_topic_match->match("c", "#.c.#"); # return true $amqp_topic_match->match("a.b.c.d", "*.b.c"); # return false