Slim是一个微框架。
有一套和Lavarel很相似的路由机制。
有一个很详细的教程,详细到把基础request变量都说得很详细,我会觉得这么微的框架还要谈及这么琐碎的功能,那它本身可能真没什么功能。不过理解这些功能对于PHP程序员打好基础很有好处。比如说,文档会提及ETag,有助于程序员更好地理解缓存知识。
有中间件机制,有Hook机制。
没有显示地描述MVC的设计,没有数据库ORM模型。
PHP developers love Slim for developing Restful APIs and services, thanks to Josh Lockhart for creating this tiny beast. The best thing about starting with a micro framework like slim is that you don’t need to spend time learning it. The code base is so small that you can run through the entire code in a late night session.
最新评论