TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Marg - A Simple Request Router written in PHP

14 点作者 vaidik超过 12 年前
Marg is a simple light-weight request router written in PHP.<p>It was a weekend project and I worked on it for my personal use and to apply whatever I had learned in the past few months. Its new and it perhaps needs a lot of work.<p>I'd be really happy to get some feedback. Positives and negatives, both!

3 条评论

pan69超过 12 年前
Up vote for the effort. This seems to be one of the many PHP routers in existence these days. To bad you didn't model it after the routing used in Kohana. That's still the best and most flexible routing I've seen so far.
评论 #4768811 未加载
jfaucett超过 12 年前
nice! probably no one except me will upvote this b/c its PHP which is so uncool. But I think this is a really thin, nice lib, though I would say you're gonna have problems with your REQUEST_URI if you're depending on PATH_INFO (check out the getRequestUri in Symfony2 httpfoundation for good fallbacks). I know its supposed to be micro, but you might want to consider extending the request class for other basic stuff people would like to use like HEAD / PUT / DELETE, good job though :)
评论 #4766503 未加载
评论 #4766531 未加载
flyankur超过 12 年前
Well I like it. Simple,Easy to pick up and integrate. Looking forward to use and contribute.