E
E
Egor Nevedov2016-07-17 13:47:40
Yii
Egor Nevedov, 2016-07-17 13:47:40

The first project to learn PHP frameworks - what to do?

I want to understand some popular (freelance, employers) framework. That is, to understand the architecture of classes, what is invented for what and how it works.
Before that, I wrote my simple CMS from scratch in a procedural style. I know OOP, but I am not familiar with patterns, that is, I read about them, but this did not add understanding. it is not clear what real problems they solve in a real project, so not everything is so simple.
There are 2 questions: which framework is better to choose - Yii2 vs Laravel?
And what would be the best project for a first tutorial on this framework, but one that has some potential for development ( not a blog! ), and even better, commercial potential/public benefit?Maybe some specific service or aggregator is missing?
I would like it to be possible to start small and simple, and in the future, adding the opportunity to explore the maximum of the internals of the framework.
I would also be grateful if you share good links on organizing the workflow for the framework. Now I use phpstorm, but not all of its features.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
nepster-web, 2016-07-17
@Sanitar88

"OOP know" - believe me, you don't know.
With Yii2, I do not advise you to start learning. Take Laravel5.2 or symfony3 or zend3 as training, whatever you like, but by no means Yii2. Otherwise, you will not have a correct understanding of OOP, SOLID, and many more best practices.
As far as patternnorms are concerned, it is impossible to write good long-maintenance code in principle without: PSR, DI, Repository, Entity/DTO/VO, tests, etc. Therefore, if you do not know at least one of these words, before writing and learning something, read a book on OOP. Otherwise, you won't write anything good.

A
Alexander Ablizin, 2016-07-17
@mcmraak

Both are good, they all have a future and they are all worthy of attention, it is difficult to say which one is better for an initial acquaintance.
Yii is already quite "wise", so it is obvious that there are more examples and docks on it.
Laravel is "young but extremely promising" because it has absorbed all the good things from all the major frameworks before it, and I'm sure it has a great future.
But if you need to get into freelance orders, then it’s better to start right away with symfony, because it has the most of them, that’s a fact.
And the best thing to do would be to study them all and choose the one that is closer to your liking)

I
index0h, 2016-07-18
@index0h

nepster09 Basically, he said about the case, but Laravel got excited. Do you want a quality framework - Symfony, Zend. From small frameworks I can advise Silex.
symfony
symfony
Well, this is for you to write, so what you can implement is not enough))
Generally speaking under such request approaches basically any.
Git - sacred
Vagrant -
Ansible environment - for configuring a virtual machine under Vagrant
Plugins of the storm: Symfony2 Plugin, Symfony2 - Clickable Views, PHP Annotations I
recommend reading at your leisure

D
Dmitry Evgrafovich, 2016-07-27
@Tantacula

It makes no sense to take on something big and meaningful without a wealth of knowledge. More intelligent programmers will pour urine on your code and will not use it because of its poor quality, and even you yourself will be horrified in six months when you look at your code. Good packages are born when a good programmer needs something from github, but this something is not there. Good programs - when you are spinning in a certain area for a long time and again, neither you nor your colleagues have a convenient tool. At the moment, you will not be able to satisfy the needs of developers (and they are the ones who are mostly sitting on the toaster). Take a better look at the forums of your favorite topics, see what people need (the same seoforums often ask for various scripts, you can write your own analogue of live street or an open analogue of cerebro), watch what what different projects offer in different areas and try to mentally transfer them to other areas (handy catalogs work equally well in wedding themes and for beauty salons). Look for freelance jobs other than business cards.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question