jandelson / active-router
一个简单的路由器,适用于刚开始使用路由且不需要复杂路由的用户
dev-master
2020-01-06 15:25 UTC
This package is auto-updated.
Last update: 2024-09-07 02:01:06 UTC
README
简单的路由实现,适用于路由初始化
基本用法
<?php require_once __DIR__ . '/vendor/autoload.php'; /** * Cria conexão com o banco de dados */ $router = new \ActiveRouter\Router(); $router->newRouter('/', 'namespace\Init'); $router->newRouter('/search', 'namespace\Search'); $router->run();
通过 Packagist cd composer require 'jandelson/active-router:dev-master'