PHP Frameworks

What exactly is a framework? Like cakePHP? How are frameworks made? Is it just a set of helper classes and functions or something else? Or a new language based on php?


Answer 1, authority 100%

  • In fact, frameworkis a set of auxiliary classes and solutions for any template tasks. Known examples are CakePHP, CodeIgniter, Symfony, Kohana.

  • Frameworks are usually born when a developer or a group of developers gets bored doing the same tasks over and over and realizes that some general approachescan be applied to solve these similar tasks. These “approaches” are just taken out into the framework.

In some cases, frameworks internally implement the so-called DSLdomain-specific language, i.e. some new simple programming language designed to solve highly specialized tasks. This interprets this language (in the case of PHP frameworks), of course, using PHPinternals.