Thank you again for this lesson Gio. I had to attend to something for a few days so I paused. The way you ended it was intuitive really. Cause I was just saying to myself that I may have to read up and then go through the code to really understand the connections and then the small refactoring we had to do. It's been amazing Gio. I'm really looking forward to the project.
From 8:15 onwards, the setup went a bit over my head, but after watching it again, it made much more sense. I guess for me, it's not always obvious what needs to be changed and where to get the change information from, which is why I probably didn't pick up Slim the first time I looked at it.
Yes it does take some setting up, that's why I am showing how to set it up with various dependencies like Doctrine, PHP-DI, Twig, etc. I decided to use slim in this series because it's light and doesn't provide a lot of features, allowing us to work with vanilla PHP more.
Thank you for this very good video about Slim framework. In order to get a solid base, I would recommend doing the configuration first, then install the DI container (PHP-DI) and finally install Twig.
Twig was already installed so it was just the matter of using slim-twig component & creating the Twig instance properly, this is based on the codebase we've been working on from previous lessons. In next lesson we are going to set up the PHP-DI.
Oh no. I was so eagerly waiting for a few videos on design pattern stuff. I guess it's not gonna happen for at least a couple of months. Do you have a plan on that in particular or maybe somewhere in future? Design pattern before the project would be nice. Thank you so much for covering so much in the series. Better than any top tier paid courses hands down.
I'm sorry. I think design patterns requires its own series. It would be too much to incorporate it in this series given that we are close to the finish line. Currently no specific plan or an ETA. Thank you for the suggestion & for kind words 💙
I think this was the first lesson that ended with an error. First time for everything! I do like splitting larger tasks into smaller ones. Its easier to follow along.
Great one ! thanks a lot for the knowledge sharing 😍 p.s: I had to made some adaptation especially with Twig extension which is now abandoned. With my "fixes", it now works like a charm.
thanks you Gio this a strong tutorial but i have a questation i want to use laravel framework so i should stop watching till slim framework or i should continue what is your suggest
I would recommend to complete this course all the way since it will make learning Laravel easier. We cover some important topics that are relevant for Laravel as well
hey Gio, can you cover propper way of logging? Specifically how to log an exception that is caught by throwable interface. Catching throwables are some times nesessarry (as far as I can tell) if you want to return a valid json output when you get an internal server error. Maybe setup a logging server inside docker?
Thank you so much for this. I'm excited to use a framework 🙂. Sadly, after installing I got a HttpNotFoundException with the message "not found". I'm using Apache on xampp My mod_rewrite is enabled I added the .htacess files to the public directory and in the directory above the public directory (in my case, this is the root directory) as directed in the documentation. For each .htaccess file I pasted the snippet of directives I got from the documentation. I also tried using the setBasePath() function to "/twig/public/index.php" But I still keep getting the exception. 🙏...please can you help me with this
@@ProgramWithGio thanks for your response and the opportunity to reach out to you. Thank you very much. The error came from the setBasePath() method. I passed in the wrong argument. Thank you once again 🙏
beautiful tuts! maybe you can make a tutorial with illuminate/routing from laravel..so not the whole Laravel but modules..so if you do a laravel course , we already familiar... and the illuminate/container for the Dependeny injection containers
Thank you, we covered the container already from Laravel as an example as well as Blade. Routing is very similar to how Slim does routing so there is not much to be done there
5-7 years ago I tried to test Slime. He didn't approach me. Similarly Laravel through console support. But I changed my mind about the second one. But before a man learns the basics, more versions will come out that change many things. And learning again. Back then I was at the level of plain php3 and was looking for something lightweight for simple pages. "Mare" Laravel did not enter into it. And when I wanted to know the lightweight version of Laravel - Zero(?), they probably stopped developing it. Over the years I haven't found (maybe due to lack of time) some other set - router, controllers, auth, eloquent, views, etc. like in Laravel. As I can see after this episode, Slime is very broken. If you want full MVC support, install n packages, and then another one to increase the next possibilities. I hope that somehow I will put together my dream set for light hobby projects, without the need for Laravel.
Not sure what Slim & Laravel have to do with each other. Slim is not a full features framework, it's just a router with http component basically with middleware/request/response support. Laravel is a full framework that comes with many features. If you use slim then yes you will need other packages. They both are great and have their usecases. I personally use Laravel for pretty much everything, haven't had any issues. As far as the upgrades goes I agree sometimes it's too frequent but Laravel has improved on that and now they do yearly updates instead of twice a year. If these 2 don't work for you then I would suggest looking into Symfony or Laminas, they are also great alternatives.
In general, it was about 20 years ago that I started playing with PHP. Later I came across Smarty for view rendering. First phpbb, wp... I haven't had much contact with OOP. There was a long hiatus in development and as I mentioned earlier I came across Slime. I've been trying to stay up to date with Laravel since ~v5.3. It gives so many possibilities that a beginner can get lost. A multitude of functions, abbreviations and changes from version to version... I was also planning to learn Symfony, but I preferred to stay on Laravel, which is mainly Symfony anyway. And certainly in learning a poor knowledge of English does not help. Probably when I finish this playlist I will try to switch to illuminate/database in Slime anyway. Uncle G already found me some links :D Although you yourself showed it in the second section. Translation uncle G;)
Hello. I haven't used opencart before so don't think I would be qualified to teach it. If I decide to learn it myself then I could make a video on it. Thanks for the suggestion 👍
Use XAMPP or Laragon or Docker. We set up PHP with XAMPP in first section and Docker in 2nd section, check those out. If you want to use something else like Laragon then Google Laragon tutorial
@@ProgramWithGio, sorry, didnt mean anything bad :) Wonderful video, it just became a bit tricky and "ultrafast refactoring-style" at 11 minute and later. That's the thing that u have to watch slowly, pausing it every second and replaying it time after time)
I have not used/worked with codeigniter so can't comment on whether its light weight or not. Slim is more suitable for the project because it lines up well with the code we've written in the series so far 👍
Actually this is one of those lessons where I speak slow, so I'm not sure what the issue is. You can slow it down even more on TH-cam, it has that feature where you click on the gear icon & select playback speed and make it play at 0.5x speed. Hope that helps 👍
Thank you again for this lesson Gio. I had to attend to something for a few days so I paused. The way you ended it was intuitive really. Cause I was just saying to myself that I may have to read up and then go through the code to really understand the connections and then the small refactoring we had to do. It's been amazing Gio. I'm really looking forward to the project.
Awesome, glad to hear 🙌
From 8:15 onwards, the setup went a bit over my head, but after watching it again, it made much more sense. I guess for me, it's not always obvious what needs to be changed and where to get the change information from, which is why I probably didn't pick up Slim the first time I looked at it.
Yes it does take some setting up, that's why I am showing how to set it up with various dependencies like Doctrine, PHP-DI, Twig, etc. I decided to use slim in this series because it's light and doesn't provide a lot of features, allowing us to work with vanilla PHP more.
Thank you Gio. You are the best ❤
Thank you & no, you are 🙌
Thank you for your all the lessons, it is very clear and understand
You are welcome & thank you 💙
you are my hero! greetings from rio de janeiro!
Hello rio 👋. Hope to visit one day, thank you 💙
Amazing content as always!
Appreciate it, thank you 💙
Thank you for this very good video about Slim framework. In order to get a solid base, I would recommend doing the configuration first, then install the DI container (PHP-DI) and finally install Twig.
Twig was already installed so it was just the matter of using slim-twig component & creating the Twig instance properly, this is based on the codebase we've been working on from previous lessons. In next lesson we are going to set up the PHP-DI.
@@ProgramWithGio thank you so much for this
@@ProgramWithGio Ok great, thanks for the clarification.
As good as always looking forward for next part
Thank you 💙
thank you Gio, when choosing php framework Slim is my goto, because not bloated and minimalist
Yup, slim is really slim 🙂
Oh no. I was so eagerly waiting for a few videos on design pattern stuff. I guess it's not gonna happen for at least a couple of months. Do you have a plan on that in particular or maybe somewhere in future? Design pattern before the project would be nice. Thank you so much for covering so much in the series. Better than any top tier paid courses hands down.
I'm sorry. I think design patterns requires its own series. It would be too much to incorporate it in this series given that we are close to the finish line. Currently no specific plan or an ETA. Thank you for the suggestion & for kind words 💙
@@ProgramWithGio👍
I think this was the first lesson that ended with an error. First time for everything! I do like splitting larger tasks into smaller ones. Its easier to follow along.
Gotta celebrate :)
Great one ! thanks a lot for the knowledge sharing 😍
p.s: I had to made some adaptation especially with Twig extension which is now abandoned.
With my "fixes", it now works like a charm.
Awesome, glad it's working. Which extension is abandoned? I don't think Twig extension that we use here is abandoned.
Thanks for this Gio! I hope you will create a video tutorial of Mezzio!
You're welcome 🙌
Caffine Programming ok well I well I had to get a couple of cupa to keep upa. Loved it
😁😁
Thank you.
You're welcome!
thanks you Gio this a strong tutorial but i have a questation i want to use laravel framework so i should stop watching till slim framework or i should continue what is
your suggest
I would recommend to complete this course all the way since it will make learning Laravel easier. We cover some important topics that are relevant for Laravel as well
hey Gio, can you cover propper way of logging? Specifically how to log an exception that is caught by throwable interface. Catching throwables are some times nesessarry (as far as I can tell) if you want to return a valid json output when you get an internal server error. Maybe setup a logging server inside docker?
Thank you for the suggestion. I'll think about it
Thank you so much for this.
I'm excited to use a framework 🙂.
Sadly, after installing I got a HttpNotFoundException with the message "not found".
I'm using Apache on xampp
My mod_rewrite is enabled
I added the .htacess files to the public directory and in the directory above the public directory (in my case, this is the root directory) as directed in the documentation.
For each .htaccess file I pasted the snippet of directives I got from the documentation.
I also tried using the setBasePath() function to "/twig/public/index.php"
But I still keep getting the exception.
🙏...please can you help me with this
I would need to see your code & configuration to be able to help, hard to guess or troubleshoot the issue this way. Feel free to DM me on X (Twitter)
@@ProgramWithGio thanks for your response and the opportunity to reach out to you.
Thank you very much.
The error came from the setBasePath() method. I passed in the wrong argument.
Thank you once again 🙏
beautiful tuts! maybe you can make a tutorial with illuminate/routing from laravel..so not the whole Laravel but modules..so if you do a laravel course , we already familiar... and the illuminate/container for the Dependeny injection containers
Thank you, we covered the container already from Laravel as an example as well as Blade. Routing is very similar to how Slim does routing so there is not much to be done there
@@ProgramWithGio Oh..i did not look good enough :) thanks
5-7 years ago I tried to test Slime. He didn't approach me. Similarly Laravel through console support. But I changed my mind about the second one. But before a man learns the basics, more versions will come out that change many things. And learning again. Back then I was at the level of plain php3 and was looking for something lightweight for simple pages. "Mare" Laravel did not enter into it. And when I wanted to know the lightweight version of Laravel - Zero(?), they probably stopped developing it. Over the years I haven't found (maybe due to lack of time) some other set - router, controllers, auth, eloquent, views, etc. like in Laravel. As I can see after this episode, Slime is very broken. If you want full MVC support, install n packages, and then another one to increase the next possibilities. I hope that somehow I will put together my dream set for light hobby projects, without the need for Laravel.
Not sure what Slim & Laravel have to do with each other. Slim is not a full features framework, it's just a router with http component basically with middleware/request/response support. Laravel is a full framework that comes with many features. If you use slim then yes you will need other packages. They both are great and have their usecases.
I personally use Laravel for pretty much everything, haven't had any issues. As far as the upgrades goes I agree sometimes it's too frequent but Laravel has improved on that and now they do yearly updates instead of twice a year.
If these 2 don't work for you then I would suggest looking into Symfony or Laminas, they are also great alternatives.
In general, it was about 20 years ago that I started playing with PHP. Later I came across Smarty for view rendering. First phpbb, wp... I haven't had much contact with OOP. There was a long hiatus in development and as I mentioned earlier I came across Slime. I've been trying to stay up to date with Laravel since ~v5.3. It gives so many possibilities that a beginner can get lost. A multitude of functions, abbreviations and changes from version to version... I was also planning to learn Symfony, but I preferred to stay on Laravel, which is mainly Symfony anyway.
And certainly in learning a poor knowledge of English does not help. Probably when I finish this playlist I will try to switch to illuminate/database in Slime anyway. Uncle G already found me some links :D Although you yourself showed it in the second section.
Translation uncle G;)
Hi gio, Wouldn't it be great if you could make a video about opencart?
Hello. I haven't used opencart before so don't think I would be qualified to teach it. If I decide to learn it myself then I could make a video on it. Thanks for the suggestion 👍
I love slim
Me too 😊
how to run application without having to use php -S localhost:8888
so running it simply with localhost/slimapi/
Help me...
Use XAMPP or Laragon or Docker. We set up PHP with XAMPP in first section and Docker in 2nd section, check those out. If you want to use something else like Laragon then Google Laragon tutorial
#300 Thank you :)
You're welcome
Блин, хорошо ведь начинали... ) А потом Остапа понесло))
Can you elaborate? 🤔
@@ProgramWithGio, sorry, didnt mean anything bad :)
Wonderful video, it just became a bit tricky and "ultrafast refactoring-style" at 11 minute and later. That's the thing that u have to watch slowly, pausing it every second and replaying it time after time)
@@itismadebymonkey got it 👍. If you have any questions related to refactor let me know 🙌
What you think about codeigniter framework??? It's also light weight framework.
I have not used/worked with codeigniter so can't comment on whether its light weight or not. Slim is more suitable for the project because it lines up well with the code we've written in the series so far 👍
And sure enough…!
😏😏
Nice jokes
Thanks
Hablas muy rápido y no te entiendo nada ... Ten en cuenta que habemos gente que no hablamos tu idioma 🤨
Actually this is one of those lessons where I speak slow, so I'm not sure what the issue is. You can slow it down even more on TH-cam, it has that feature where you click on the gear icon & select playback speed and make it play at 0.5x speed. Hope that helps 👍
Se le escucha bien, activa subtitulos.
@@aeapyps Es lo mismo va muy rápido pero ha de ser porque no hablo el mismo idioma
Click on the cog/gear icon on TH-cam when watching and select playback speed. Set it to 0.5x or 0.25x and it will play slower for you.
Busca un tuto en castellano y deja de joder