Good day!

Recently mastered PHP. Now there is an order for the development of landing.

Would it be rational to use any framework like Yii or Symfony?

Or everything is written calmly in ordinary PHP

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants Visman , aleksandr barakin , user194374, cheops , Kromster 16 Jul '16 at 16:04 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    Landing can be written in pure HTML (well, a little js) - rjhdby
  • and behind this odnostranichnik many functional? - strangeqargo
  • one
    Most often for landing you need JS + HTML and no PHP . - xAqweRx
  • one
    Sparrow cannon. The required functionality is small, and the framework provides all 33 pleasures. Although if you have the desire, the place and the need to gain experience with the frame - please. - user207618
  • What will be the functionality? Landing is read-only, or there you can leave orders, emails in a subscription, messages from the site, payment, SMS, bots for messengers and so on. - Sergiks

1 answer 1

It all depends on the tasks that you want to solve on the side of the backend. Most likely, all the functionality of the framework is enough for you. I worked with Yii and I know that there are already a lot of helpers in it, which allow to form beautifully dates, amounts and so on. Also, there is a functional protection against csrf and injections.

I do not see anything wrong with that in a one-page someone uses a framework to save time for development and testing. At a minimum, you will not waste time on creating the basic structure, filters and validators of incoming data (filling out forms).

If you use caching in the presence of a sample of sql, then you can easily and quickly save resources.

However, there is no point in using the framework if you write on the server side only some render ('template') and nothing else.