What is a framework, exactly? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

23rd Apr 2017, 9:32 AM
Miloš
Miloš - avatar
6 Answers
+ 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..
23rd Apr 2017, 9:58 AM
timtech4u
timtech4u - avatar
+ 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 :)
23rd Apr 2017, 9:58 AM
Geoffrey L
Geoffrey L - avatar
+ 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.
23rd Apr 2017, 12:10 PM
Geoffrey L
Geoffrey L - avatar
+ 3
framework contains some library's some classes that are already created we use that frameworks or libraries in our project
23rd Apr 2017, 9:41 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 1
Yii2 is a good php framework to be considered.
23rd Apr 2017, 10:22 AM
Calviղ
Calviղ - avatar
0
OK, so basically frameworks to PHP are like JQuery or Angular to Javascript?
23rd Apr 2017, 11:12 AM
Miloš
Miloš - avatar