smerny Posted April 29, 2012 Share Posted April 29, 2012 Hey, does anyone know of some good example PHP sites (structured well, MVC, etc) that have source code available to study? or any resource that shows examples of best-practices in regards to structure and such? Seems extremely easy to search online and find how to do about any specific thing... but it seems harder to find "the bigger picture" Quote Link to comment Share on other sites More sharing options...
MarPlo Posted April 30, 2012 Share Posted April 30, 2012 Hi, I know there is an ebook, "PHP Objects Patterns and Practice" with such examples, code and detailed explanations. I don't know how good it is because is to advanced for me. Quote Link to comment Share on other sites More sharing options...
xyph Posted April 30, 2012 Share Posted April 30, 2012 There are tons of open-source CMSs designed in PHP. I warn you, though, the "bigger picture" can be overwhelmingly huge. A smaller project might be easier to follow, something like thorpe's proem framework, though the concepts and design within are still quite complex. Quote Link to comment Share on other sites More sharing options...
smerny Posted April 30, 2012 Author Share Posted April 30, 2012 Yea, I didnt necessarily mean a big project by "the bigger picture", just a full view of a project.. smaller projects would be better. Something that shows standardized (? or just best practice) use of MVC, basic structure, etc. I've started my own projects and the outcome is okay, but then for some reason or another it might not scale well... or I'll think of something that I want to change and it basically requires everything to be changed... would be nice to find some guide that kind of steps you through how to start a (simple) project correctly from the ground up, and examples of what it might look like at the end. Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted April 30, 2012 Share Posted April 30, 2012 Hmm... I haven't seen anything in PHP like what you're asking. Generally, the various frameworks have decent documentation on how to use said frameworks, but the examples are generally simple/canned in order to highlight particular functionality. They tend to lack a meaningful, realistic project for someone to see in action. Symfony2 is pretty much a by-the-numbers MVC framework. It has great documentation, too: http://symfony.com/doc/current/book/index.html But the examples, like with others, are designed simply to showcase the framework itself. Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted April 30, 2012 Share Posted April 30, 2012 This isn't a bad one for building and understanding how a simple mvc framework works. http://www.devshed.com/c/a/PHP/Building-a-Simple-MVCbased-Framework-in-PHP-5/ Quote Link to comment Share on other sites More sharing options...
xylex Posted April 30, 2012 Share Posted April 30, 2012 If you're looking for a book, a really good one is Bergmann's Real-World Solutions for Developing High-Quality PHP Frameworks and Applications. Since it's Bergmann, it does focus a lot around making sure your framework is testable, but there is pretty extensive coverage of real-world applications of the basic principles. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.