Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Boon Kiat Seah
Boon Kiat Seah
66,664 Points

Php Slim framework 3.0 New Update

HI ,

Will like to update the community on the following new changes . Building website with php using slim framework and twig as templating library.

Slim is now updated to 3.0 while the course was taught in 2.0. There is a major update and coding going into 3.0. While i learnt the course a few months back and started to build now, there is a lot of confusion now as googling for problems will easily pulled out slim 2.0 resources while the version we are working on is for slim 3.0

As i cracked my head to do more research, i hope to also list out the following urls that could help out the community just as some of you may also be doing the same things as i do. I super love treehouse and this community move to even greater heights going into a brand new year 2016.

Important info from official slim website documenting the changes http://www.slimframework.com/2015/02/11/whats-up-with-version-3.html

Resources provided by slim lovers on transiting to 3.0 from 2.0 https://blog.tamingtheelephpant.com/articles/slim-intro.html

Great tutorial for folks who are new to 3.0 https://blog.tamingtheelephpant.com/articles/slim-3-tutorial

Great starting tutorial and example of website structure directory build with slim 3.0 https://www.google.com.sg/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwjvy-7cgefJAhWBCY4KHdsoDoMQFggbMAA&url=https%3A%2F%2Fakrabat.com%2Fwp-content%2Fuploads%2F2015-05-20-phpberks-getting-started-with-slim-3.pdf&usg=AFQjCNGq43wMOJ4MQfQm7HisffgclxwIng&sig2=Mq1d-RYhG74sTJLp-Ne2cw

Hope this list help you out with slim 3.0 . This list is by no means exhaustive. Do provide yours if you find a great resource for using slim 3.0.

Here are the dependencies enough to get slim and twig on your project. ( Did not download monolog and swiftMailer )

{ "require" : { "slim/slim": "^3.0", "twig/twig": "^1.23", "slim/twig-view": "^2.0" } }

Regards, Bk

3 Answers

Sergey Vrenev
Sergey Vrenev
28,778 Points

You save my brain from blowing. Appreciate a lot !

Bryn Humphreys
Bryn Humphreys
26,472 Points

Thanks Boon, This was driving me crazy trying to follow the build a simple website with php and using slim 3 while the video was conducted using slim 2.
You have saved my sanity!