drmvc/router

View on GitHub
extra/route.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
require_once __DIR__ . '/../vendor/autoload.php';

use DrMVC\Router\Route;

$route = new Route(['get'], '/<action>', function() {
    echo 'asd';
});
print_r($route);

$route = new Route(['put', 'post'], '/<zzz>', \DrMVC\Router\Error::class . ':test');
print_r($route);