适合初学者的 Slim 框架 [英] Slim Framework for beginners

查看:16
本文介绍了适合初学者的 Slim 框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人如何学习如何使用这个系统?

How does anybody learn how to use this system?

我似乎找不到任何关于如何使用这个程序的教程或书籍或任何东西.是的,他们的网站简要解释了一些事情,但没有澄清或任何事情.Google 让我失望了.

I can't seem to find any tutorials or books or anything on how to use this program. Yes their website briefly explains a few things but there is no clarification or anything. Google has failed me.

谁能帮我解决这个问题?我需要使用它,但它对我来说完全陌生.

Can anyone help me with this? I need to use this but it looks completely foreign to me.

推荐答案

更新:3年后,是时候为这个答案添加一些更新了.在此期间,Slim 框架(甚至 PHP)发生了很多变化.

UPDATE: After 3 years, It is time to add some updates to this answer. A lot has changed in slim framework (and even PHP) during this time.

Slim 版本 3 已发布,并对其进行了一些重大更改.在我的测试中,它比 slim 2 稍微慢一些并且稍微复杂一点,但是在架构方面,它更好、更安全,适合大型项目和小型网站.
此外,PHP 采用了非常好的标准化形式,我认为每个人都应该开始采用 PSR.面向对象的实现在 3 年内有了很大的改进,随着 PHP 7 的发布,我不再怀念我的 Java 日子了.

Slim version 3 has been released and brought some major changes to it. In my tests, It is slightly slower and tad more complicated than slim 2, But architecture wise, it is much better, secure, suited for both large projects and small website alike.
Also, PHP has adopted really good standardization in form of PSR which I think everyone should start to adopt. Object-oriented implementation is improved a lot in 3 years and with the release of PHP 7, I don't miss my Java days anymore.

一些入门链接.

  • Slim framework now has excellent docs, If someone is still using Slim2 it also has a decent docs.
  • A must watch Slim 3 Primer to get started. http://phpsw.uk/talks/a-slim-3-primer
  • Slim Blog is really good thing to read.
  • https://github.com/xssc/awesome-slim is a good place to bookmark.

Treehouse 和其他一些人在评论中提到了一些关于 Slim 2 的教程,它们值得一看.Slim 3 还没有初学者的教程视频,但框架本身很容易理解.对于简单的网站,我仍然会向那些不是真正有经验的程序员推荐 Slim 2.但如果有人试图构建一个大型的专业应用程序/产品,请使用 Slim 3.

Treehouse and few others have made some tutorials on Slim 2 as mentioned in comments, they are worth looking. Slim 3 is yet to have a beginner's tutorial videos but framework in itself is simple to understand. For simple websites, I would still recommend Slim 2 for those not really an experienced programmer. But if someone is trying to build a big professional application/product, Use Slim 3.

老答案

我同意 slim 在文档和指南方面缺乏某些关注.目前还没有很好的教程,但是如果你有很好的拾取技巧,让我指出我在网上找到的唯一有价值的东西.

I will agree that slim lacks certain attentions in terms of documentation and guides. There is still no great tutorial for it, but if you have good pickup skills, Let me point you to the only worthwhile thing I found on net.

这是关于超薄框架的介绍.不是一个完整的教程,但它确实解释了使用该框架的某些基础知识.当我第一次拿起框架时,它帮助了我.

This is Presentation on the slim framework. Not a complete tutorials but it does explain certain basics to use the framework. It has helped me when I first picked up the framework. It is a Presentation By Jeremy Kendall.

可以在 slideshare 上找到幻灯片.

视频时长 43 分钟,但值得.

The video is 43 min long but it is worth.

这篇关于适合初学者的 Slim 框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆