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 trialKaran Jindal
Courses Plus Student 1,406 PointsHow to create a MVC in PHP?
Can anyone suggest me the tutorials or a full clean guide on how to create our own MVC in PHP?
Thank You
1 Answer
Kevin Korte
28,149 PointsMVC really just refers to an organizational structure of a web app. It's nothing really more than that. Today, we see MVC frameworks like Laravel or Rails that provides a ton of extra common functionality that can be easy used, with a simple syntax, but that's not what the definition of a MVC.
Some basic OOP and database understanding, and you could build a super simple MVC if that's all you needed.
Now with that said, if you're looking for a tutorial to build a PHP MVC, check out this: https://www.youtube.com/playlist?list=PLfdtiltiRHWGXVHXX09fxXDi-DqInchFD
Karan Jindal
Courses Plus Student 1,406 PointsKaran Jindal
Courses Plus Student 1,406 PointsThanks kelvin for your valuable reply. But I am not satisfied with these tutorials. I need some advance tutorials with information from scratch.
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsHelp me understand what you're looking for, and I'll see if I can further help. What are you trying to build. How will your MVC be used? What left you unsatisfied from the above tutorials? Are you looking to build something more akin to Laravel?
A MVC is architecture for object oriented programming. What are we accomplishing? With a basic understanding of MVC's and a good understanding of OOP, you could build your own MVC framework.
ammarkhan
Front End Web Development Techdegree Student 21,661 Pointsammarkhan
Front End Web Development Techdegree Student 21,661 PointsKevin Korte It would be interesting if Next step in OOP tutorials would lead too MVC, although in explanation its easy to understand but hard to implements, like how do the php bind all MVC pages and show us, how does URL routing works etc. Given the scope of jobs in UK or USA or even South Asia countries, they ask you if u know MVC and the answer is no, because there aren't good tutorial, but i like to have a tutorial by Treehouse to further take OOP into MVC