+ 3
What is a framework, exactly?
So, I've finished some PHP courses and people tell me the next thing to do are frameworks, for example Laravel. Now I have watched some videos on YouTube but still can't wrap my head around the concept. Could someone please explain what is the purpose of frameworks? Can they do something that code cannot? Why do I need them? Thanks.
6 ответов
+ 6
Hi, you can consider Noodle which has your seasoning to be a framework.
A framework is usually a set of preloaded features for the aim of simplifying a particular task.
A web framework such as Django or Laravel simplifies the process of making standard websites by providing you with features such as ORM, Auth, Session management etc..
+ 9
Frameworks also introduce a workflow philosophy, which is very important. With "naked" PHP you can write as you want, create your own way to code. With a framework you follow a rail, force you to be organised and make everyone follow the same way. Very good for teamwork and huge projects :)
+ 7
I wouldn't say they are like jQuery (i don't know Angular). I'm at this moment learning Symfony and I would say jQuery would be a small tool plug to a huge machine. Machine which manage everything in one, make every pieces match together, communicate to each others. Like in a car, wheels make the car move, animate it (see it as jQuery) but wheels are link to others pieces which are themeselve control by a motor.
+ 3
framework contains some library's some classes that are already created
we use that frameworks or libraries in our project
+ 1
Yii2 is a good php framework to be considered.
0
OK, so basically frameworks to PHP are like JQuery or Angular to Javascript?