Jump to content

Learn by example?


smerny

Recommended Posts

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"

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.