Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您可能已经找到了解决方案,但我最近使用的路由类之一就是这两个,并且它们已被证明是有效的。
PHPRouter.php https://github.com/dannyvankooten/PHP-Router
AltoRouter.php https://github.com/dannyvankooten/AltoRouter
You probably already found a solution but one of the routing classes I've been using lately are these two and they've proven to be effective.
PHPRouter.php https://github.com/dannyvankooten/PHP-Router
AltoRouter.php https://github.com/dannyvankooten/AltoRouter
您可能会发现 Silex 很有趣。否则,如果您只关心路由,那么使用 mod_rewrite 是最有效的解决方案。
You might find Silex interesting. Otherwize if you only care about routing, using mod_rewrite is the most efficient solution.
您可能会考虑剥离 Zend Framework 并仅使用相关部分,例如:
但是您必须自己减轻重量,它工作得非常好!
You might consider stripping down Zend Framework and only use the relevant parts, like:
However you will have to make it loose weight yourself, it works pretty nice!