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

dev-master 2021-11-01 16:54 UTC

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