Answer the question
In order to leave comments, you need to log in
Advise PHP Best Practices
My greetings.
Please suggest a small open source project with the aim of learning PHP using the "how the big uncles do it" example. High-quality code (to your taste), OOP (if possible), small volume (do not offer Drupal, WP and other monsters), live community. What would be implemented: sharing access, working with the database, caching using PHP (optional), maybe some other typical tasks. If there is also documentation for developers, it’s generally great. One more wish, most likely, is unrealizable: what would correspond to the latest changes in the language, that is, that the code would be PHP 5.3.
Thank you in advance, comrades. May the Force be with you.
Answer the question
In order to leave comments, you need to log in
Yii has already been recommended a lot. Both here and on LOR'e (not by the night will be remembered) and in other places. Let's see! Thank you.
Maybe not the topic, but after getting to know Python and dzhanga, I somehow recall with horror the past years when I wrote on PoHaPe :)
PS I myself have never watched how big uncles do it, it’s more and more interesting to call in battle, that is, to solve a certain problem ... growth it comes by itself... after all, I think it happened to many when you look at your code written 2-3 years ago :)
I recommend to take a look at Yii, it is written using best practices, OOP, patterns and other newfangled things) You can look at the codes of other frameworks (kohana, cakephp, symfony) to your taste. Drupal and WP, although popular, are far from best practices in many ways, although there is undoubtedly something to see there.
ZF is, to put it mildly, a terrible project as an example, libraries - yes, but not the whole framework, which you will die with 20K online users on the site.
1) An ideal example of proper design is Yii, IMHO. Not only is it superb in itself, with perfect speed, proper design, but it will also teach you how to write correctly.
So I would advise you to use Yii as an example.
When I worked with forums, I liked the implementation of phpbb3. There is caching, and an interface for working with different databases, and sharing access across unlimited levels. But it seems not very small, but very well structured.
www.phpbb.com/
Well, you can also look at us (Limb framework, sources: https://github.com/limb-php-framework/limb, documentation: wiki.limb-project.com/ , forum: forum.limb-project.com/ ) , I don’t pretend to be “big uncles”, but users say that the quality of the code is good + large test coverage and everything you listed, except for PHP 5.3.
The code is divided into separate packages (with dependencies from each other), each of which can be studied separately.
All developers from Russia and the CIS, if anything - ask on the forum, we will help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question