Checking an arbitrary URL for Micro-Framework HLEB
The class RouteFinder
is not included in the original configuration of the framework HLEB, so it must be copied to the folder with the vendor/phphleb libraries from the github.com/phphleb/rfinder repository or installed using Composer:
$ composer require phphleb/rfinder
Checking:
use Phphleb\Rfinder\RouteFinder;
if ((new RouteFinder('/example/url/address/', 'GET'))->isValid()) {
// Found a match in the current routes.
}