What I loved about this compared to Laravel is your routes is not separated to your methods. For devs like me who doesn't have time to document the routes with their corresponding methods, this simplifies it. I'm currently jumping from Laravel to Symfony. I hope it won't be a bad decision.
Totally agree! I much prefer Symfony to Laravel. I plan to do a more comprehensive comparison video at some point, comparing the two frameworks in detail. I don't think you made a bad decision! :-)
Sir, Your teaching Methodology is really awesome and easy to understand i would love to see you to create a video on complete project using PHP more focusing on Secure programming for webApp
Hi Mr. Dave, thanks for the video. a few things to point out: 1. Please add csrf token when use delete, when using symfony forms add and validate automatically, however without you need to call a function and method that symfony provide, see in the docs. 2.Symfony since version 5.4 is consider a progressive framework, like you show. if you want the opinionated and full feature traditional framework , just use web flag. You not required to use their ORM or template system. Just use router + DI, for example to create a simple and quick web API or install other template system or engine or other query builder. 3. A few things that symfony recommend that i dont like , such as created / edit and save / update on same method. it better separated like laravel does and build forms with php which for me make no sense, even it provide with csrf token generation and validation automatically, In this laravel also better, even you are not required to use their forms system. 4. Why you are using built-in server? why you not show working with apache, since you use apache ? it is in the docs how to config with apache. 5. You miss to mention which extension you use for symfony 6. It is annoying to watch you manually import the namespace, you do this in all videos and course, please use extension called php namespace resolver. Thanks
Thank you for the detailed reply! 1. The generated CRUD controller does include the CSRF token in the delete action, but I left it out of this video as the video was getting a bit long and I thought it was a bit beyond the scope of this intro video. It's an important topic though and one I'll probably cover in another video / course. 2. I really like that about Symfony, that you only need to install what you need. Unlike Laravel, which seems to be a bit of a fatso. 3. I think I'm with you on this, I prefer a separate method to show the form and to process it - I'm not sure why the docs recommend doing it in one method. As for generating forms, I'm on the fence about that - if you like doing that in PHP, then it's a very powerful component, but I get a bit of code smell when it comes to generating too much HTML in PHP. 4. It made the video simpler. I get many comments saying they can't get Apache working. The built-in server is a quick and easy way to get it working in a browser without it conflicting with other websites, setting up a new virtual host and so on. It's good to know both methods I think. 5, 6. I deliberately use a slimmed-down editor with all the code assistance switched off, as it distracts from the point I'm trying to demonstrate. I do agree about namespaces though - although when using the code generator it's seldom necessary to enter them manually anyway. Thank you again for watching the video and your detailed feedback, it's most appreciated!
Wow, I am glad I found your account on TH-cam. You just got a new subscriber. I search your videos for logging and monitoring, but did not find any. Hope you can make one for it 😅
This is amazing! I've been using Symfony for a little while and didn't know anything about the flash messages! I have been struggling trying to figure out how javascript works with the importmap. My Google fu is failing me. Like I can get the script to import and I can see it in the source listing in the browser and I see the function I am trying to call, but when trying to trigger a onchange method with a select element, dev tools console says the method is not defined. I get the same error when trying to call the method directly from the console in dev tools. Do you have any tutorials about this?
I'm afraid I don't, but there's an excellent tutorial here on it: (ignore the video, the transcript is below it) symfonycasts.com/screencast/asset-mapper/importmap
Two things I highly advise to new developers. Don't use XAMPP, learn how to set up a containerized environment. And do not use AI for coding, you'll miss all the important stuff. Learning is not about the destination; it's about the journey and all the extra things you learn on the way. Thanks for the videos.
@@dave-hollingworth Symfony please! Also, there are loads of courses available on Laravel, but not so much on Symfony so you'll have less competition - for paid courses on Laravel, everyone defaults to Laracasts.
@@dave-hollingworth Hi, l dont agree and not valid anymore since version 5.4. Like i mention on my previous comment and like you show, when you install symfony without a flag web, you will get router (base attributes) + DI. So less package and garbage to you manage and update and as such lightweight similar to slim. And choose the package you only need from symfony or use / install, for example a simple query builder, use another template system / engine, no need for symfony forms ( which for just add unnecessary complexity) or use other validation system. All i said is in the docs. ;)
@@jediampm You're right, the base Symfony install is very lightweight as you describe. I was comparing CI with the full "webapp" install of Symfony. Thank you for the correction!
Thank you for watching! Please consider supporting my channel: ☕ko-fi.com/davehollingworth
Please make a fully-featured micro service application course (real world application) using API platform.
I wish I had this 3 years ago when I had to learn Symfony entering a new workplace... It took me some time to get it, but now I love it! Thanks a lot.
It should only take a few days to a week. It's that easy to learn.
thankyou so much for this tutorial, as i jumped to symfony from laravel, it gave me a better understanding how laravel works
What I loved about this compared to Laravel is your routes is not separated to your methods. For devs like me who doesn't have time to document the routes with their corresponding methods, this simplifies it. I'm currently jumping from Laravel to Symfony. I hope it won't be a bad decision.
Totally agree! I much prefer Symfony to Laravel. I plan to do a more comprehensive comparison video at some point, comparing the two frameworks in detail. I don't think you made a bad decision! :-)
Sir, Your teaching Methodology is really awesome and easy to understand i would love to see you to create a video on complete project using PHP more focusing on Secure programming for webApp
This a very well built tutorial, well done!
Awesome tutorial!!! Thank you so much. I learnt in an hour a whole lot more than a years subject :)
One of best tute thanks 🎉❤
nice one, thank you
Hi Mr. Dave, thanks for the video.
a few things to point out:
1. Please add csrf token when use delete, when using symfony forms add and validate automatically, however without you need to call a function and method that symfony provide, see in the docs.
2.Symfony since version 5.4 is consider a progressive framework, like you show. if you want the opinionated and full feature traditional framework , just use web flag. You not required to use their ORM or template system. Just use router + DI, for example to create a simple and quick web API or install other template system or engine or other query builder.
3. A few things that symfony recommend that i dont like , such as created / edit and save / update on same method. it better separated like laravel does and build forms with php which for me make no sense, even it provide with csrf token generation and validation automatically, In this laravel also better, even you are not required to use their forms system.
4. Why you are using built-in server? why you not show working with apache, since you use apache ? it is in the docs how to config with apache.
5. You miss to mention which extension you use for symfony
6. It is annoying to watch you manually import the namespace, you do this in all videos and course, please use extension called php namespace resolver.
Thanks
Thank you for the detailed reply!
1. The generated CRUD controller does include the CSRF token in the delete action, but I left it out of this video as the video was getting a bit long and I thought it was a bit beyond the scope of this intro video. It's an important topic though and one I'll probably cover in another video / course.
2. I really like that about Symfony, that you only need to install what you need. Unlike Laravel, which seems to be a bit of a fatso.
3. I think I'm with you on this, I prefer a separate method to show the form and to process it - I'm not sure why the docs recommend doing it in one method. As for generating forms, I'm on the fence about that - if you like doing that in PHP, then it's a very powerful component, but I get a bit of code smell when it comes to generating too much HTML in PHP.
4. It made the video simpler. I get many comments saying they can't get Apache working. The built-in server is a quick and easy way to get it working in a browser without it conflicting with other websites, setting up a new virtual host and so on. It's good to know both methods I think.
5, 6. I deliberately use a slimmed-down editor with all the code assistance switched off, as it distracts from the point I'm trying to demonstrate. I do agree about namespaces though - although when using the code generator it's seldom necessary to enter them manually anyway.
Thank you again for watching the video and your detailed feedback, it's most appreciated!
Awsome, simple & clear, THANKS
Wow, I am glad I found your account on TH-cam. You just got a new subscriber.
I search your videos for logging and monitoring, but did not find any. Hope you can make one for it 😅
Thank you ❤❤❤
VERY USEFUL VIDEO, THANK YOU
Great Video!
Really amazing course. Thank you
Great content.
Clear and informative tutorial! Already considering your Udemy courses
We need a laravel tutorial sir from you. Thanks for this one.
th-cam.com/video/Yi1NfLkflyU/w-d-xo.html
Excellent
This is amazing! I've been using Symfony for a little while and didn't know anything about the flash messages! I have been struggling trying to figure out how javascript works with the importmap. My Google fu is failing me. Like I can get the script to import and I can see it in the source listing in the browser and I see the function I am trying to call, but when trying to trigger a onchange method with a select element, dev tools console says the method is not defined. I get the same error when trying to call the method directly from the console in dev tools. Do you have any tutorials about this?
I'm afraid I don't, but there's an excellent tutorial here on it: (ignore the video, the transcript is below it) symfonycasts.com/screencast/asset-mapper/importmap
Two things I highly advise to new developers. Don't use XAMPP, learn how to set up a containerized environment. And do not use AI for coding, you'll miss all the important stuff. Learning is not about the destination; it's about the journey and all the extra things you learn on the way.
Thanks for the videos.
Merci beaucoup
When will it be available in UDEMY ?
I'm waiting to see how this video and the similar Laravel one I did last month perform before I decide what to do a full course on :-)
@@dave-hollingworth
They will do very well.
You're an excellent teacher. I have all your UDEMY courses. I have learned a lot.
Thanks!!
@@dave-hollingworth Symfony please! Also, there are loads of courses available on Laravel, but not so much on Symfony so you'll have less competition - for paid courses on Laravel, everyone defaults to Laracasts.
what fremework css are using in this video?
36:53
Mr, Dave
Are you working on a side project and how can I contact with you?
You can contact me here: davehollingworth.com/contact
Please make tutorial how to make Webstore in Symfon7 with Livecomponents / Turbo Morphing / AssetMapper :)
I want to learn PHP first what should I do. I can't find PHP?
I have a PHP course about that: davehollingworth.com/courses/php-for-beginners/
tape php full course on youtube and u fill find maybe 20
How is this framework different from CODEIGNITER?
Although it has many similarities it has many more features and available libraries. CI is quite lightweight, Symfony is not.
@@dave-hollingworth Hi, l dont agree and not valid anymore since version 5.4.
Like i mention on my previous comment and like you show, when you install symfony without a flag web, you will get router (base attributes) + DI. So less package and garbage to you manage and update and as such lightweight similar to slim.
And choose the package you only need from symfony or use / install, for example a simple query builder, use another template system / engine, no need for symfony forms ( which for just add unnecessary complexity) or use other validation system.
All i said is in the docs. ;)
@@jediampm You're right, the base Symfony install is very lightweight as you describe. I was comparing CI with the full "webapp" install of Symfony. Thank you for the correction!