Libraries tagged by Pattern Matching
cline/globby
0 Downloads
User-friendly glob matching for PHP with negation patterns, directory expansion, and gitignore support
hilalahmad/string-util
9 Downloads
php-string-util is a versatile PHP library designed to simplify and enhance string manipulation tasks in your PHP projects. Whether you're working on web development, data processing, or any other application requiring robust string handling, this utility provides a comprehensive set of functions.
benchmarkeducation/matchmaker
31 Downloads
Ultra-fresh PHP matching functions
shopbase/regex
2 Downloads
This is a package which allows PHP Regex usage without much setup. You can use the static functions as like as the default preg_* functions and they will give you a match object with a lot of functions to evaluate the matches.
stougeiro/event
1 Downloads
Lightweight event dispatcher with wildcard pattern matching and automatic deduplication. Dispatch string-based events, register invokable listeners, and load configurations from PHP files — all with zero cache overhead.
leocore/router
5 Downloads
Lightweight PHP 8.2+ routing library with pattern matching, parameter extraction, middleware support, and secure dispatching.
ht2/couple
18 Downloads
Port of ryansmith94/couple from JS to PHP. A library for coupling two objects together. This is useful for nested pattern matching.
docile/routing
8 Downloads
Docile attribute and fluent router with pattern matching, URL generation, and middleware support.
bonfim/router
17 Downloads
A fast and powerful router that maps route callbacks to specific HTTP request methods and URIs. It supports parameters and pattern matching
guide42/traba
6 Downloads
An alternative to common pattern matching to route an URL to a resource
drupal-eca-recipe/eca_lib_0004
77 Downloads
Demonstrates how to express an if/elseif/else decision in an ECA model, the pattern people usually reach for when they want a PHP switch statement. ECA has neither a switch construct nor a working exclusive gateway, so the model uses the sentinel-default idiom instead: it assigns the default value up front, lets a matching branch overwrite it, and then, one hop downstream, tests whether the value is still the default in order to detect that nothing matched. Along the way it demonstrates the four-links-to-one-target OR idiom, in which several conditioned links leaving the same predecessor point at the same successor, so that any one of them is enough to run it.
casnerano/amqp-topic-match
9 Downloads
A utility for matching routing keys to AMQP-style topic patterns.
marionnewlevant/match-input
6092 Downloads
Craft field type for text fields that match a regex pattern
born05/craft-matchinput
154 Downloads
Craft field type for text fields that match a regex pattern
php-ai/php-ml
2046103 Downloads
PHP-ML - Machine Learning library for PHP