S
S
Sergey Volkov2011-09-15 06:53:09
PHP
Sergey Volkov, 2011-09-15 06:53:09

Which php framework to choose for a small social network?

See subject.

Answer the question

In order to leave comments, you need to log in

11 answer(s)
E
Evgeny Leshchenko, 2011-09-15
@xsen

Of the popular Yii, it is highly praised. I myself now have a similar task, I chose Kohana for myself. Kohana has little documentation problems, but the community is decent.

A
Alexey Ashurok, 2011-09-15
@AotD

After joomla - for any :) Which you can master in adequate time.
CodeIgniter is as simple as boots. It is studied in 2 hours, the documentation is chic. The possibilities are modest, many developers crawl from it to Kohana.
Kohana - a more modern reincarnation of CodeIgniter, is studied in the same way in +2 hours if we are friends with php 5. *
ZendFramework - academically, as a set of libraries it is very good. As an integral framework - I did not use it.
Yii is great :) The documentation is great (except for the lack of examples in the docks as a big minus), the community Russian-language is available, modularity, interchangeability of components, is actively developing.

N
NiGP, 2011-09-15
@NiGP

Yii.
The possibilities are amazing, it’s not a little more difficult to deal with than with CI, you just need to be attentive and patient!

A
Alexander, 2011-09-15
@kryoz

Yii is really very good both in terms of ease of development and in terms of high performance.
At one time I wrote a site on Social Engine 3.x - everything was elementary and worked smartly. But it's not free.

C
cat_crash, 2011-09-15
@cat_crash

What car to choose to drive?
Look at your capabilities and requirements. First, decide on the development language - then dig based on the chosen language.
Next, look at what is more familiar and familiar - for php there are a bunch of frameworks that have already been mentioned above. If you need a turnkey solution - Social Engine.

R
Renat Ibragimov, 2011-09-15
@MpaK999

Ruby on Rails right away with a ready-made social plugin. Community Engine Networks - communityengine.org/

J
Juggler, 2011-09-15
@Juggler

The question compares sweet to hot. A social network needs a social network engine, a PHP framework is needed for development. Most likely, this is just a mistake in terminology.
There are several good ones - PHPBB, Wiki, LiveStreet. Each of them will have a different social network. I can recommend that you first imagine what features are needed, and from this look for an engine.

V
Vitold S, 2011-09-16
@vit1251

> I'll soon find out what kind of requests Yii sends to MySQL
You first find out, and then start writing!!!
When accessing any model, its schema is created (which, by the way, can be cached) as well as the request itself (you will learn all this if you read the documentation and analyze the code). In addition, MySQL itself caches the same queries, so don't be afraid of unnecessary queries of the same type ...
PS And now to the point:
1. what is very annoying is the difficulty of prescribing order for different databases, for example ->order = '`createdAt` DESC' for MySQL and ->order= '"createdAt" DESC'; For PostgreSQL, I'm a little confused by setting quotes for fields to be case-sensitive.
2. They strain a little MANY_MANY, which are generated as separate requests. I just don't know how to optimize them. You need to read the documentation more carefully, I think there are some with or something like that ...
3. A little annoying task in relations with a string of conditions. I would like Criteria and it is also very necessary to understand aliases for tables, how to set and how to screen them.
4. I still don't understand how to set nice count(item) AS item_count in DAO ->select. At first I thought that it was an associative array, but then by trial and error I came to the conclusion that only through a direct insertion of the string 'count(item) as item'

V
Vitold S, 2011-09-16
@vit1251

As for the social network, you will encounter problems:
1. organizing the wall (it is not clear where to store so many garbage records in tables or queues),
2. if there are recommendations, how to calculate them OpenSlope for MySQL alone in PHP is slow.
3. Messages in the form of a chat that there is GROUP BY in order for the wall to be visible.
PS Other problems like especially it is not noticed. I don’t see the point in writing FW from scratch, you’ll get bored - spend a lot of time, waste the investor’s money, and do nothing ... In FW, RBAC, MAIL, MVC, VALIDAION, etc. have already been done for you. basic things… You just need to sharpen it to the desired result…

A
Alexey, 2011-09-15
@alexxxst

oxwall

I
Ilya Plotnikov, 2011-09-15
@ilyaplot

Frameworks drag along a lot of unnecessary components.
Today I noticed that yii executes queries when accessing a model element. For example, there is a Simple model with relation 'data'
Three times we turn to Simple-> data-> value, we get 3 SQL queries. Although I'm not sure that the query is SELECT, perhaps some kind of auxiliary one. I will soon find out what kind of requests he sends to MySQL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question