D
D
Dima Sokolov2017-04-20 17:10:43
Laravel
Dima Sokolov, 2017-04-20 17:10:43

PHP or framework?

Where is it easier to implement simple interactions with the database and input / output of information? In pure PHP or with some php framework?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
4
4iloveg, 2017-04-20
@dimka11

https://www.youtube.com/watch?v=rpUDzLOhH8k&t=121s Related
video.

V
Vyacheslav, 2017-04-20
@Firik67

And where do you know better there and easier

M
Maxim Timofeev, 2017-04-20
@webinar

Where is it easier

Of course in framework
For example:
$model = Product->find()->andWhere(['>','price',150])->limit(5)->all(); //выборка с условиями и лимитом
$model->save(); //запись

Estimate how much pure php code you need. Framework is essentially a set of frequently used functions in a convenient wrapper. It can't be harder, it's made for "easier". The only question is that you need to spend a little time to figure it out.

A
Alexander Aksentiev, 2017-04-20
@Sanasol

Do you think the framework is written in some special dialect and you don’t need to know php to use it?

I
Ilya Beloborodov, 2017-04-20
@kowap

Well, see for yourself here. For example, if I have a task where I need to work with the database, I deploy the framework. Moreover, for "small" tasks / projects there are "small" frameworks

R
Rishat Sultanov, 2017-04-20
@rishatss

I initially took up the frame, and implemented my crutch, but then I realized that without the basics I wouldn’t go far and sat storming PHP on a new one :) Now I seem to have caught up with the lost time, and I feel more confident :) I regret that I didn’t start on the bare one right away, because the entry threshold is easier :) And so it's up to you. If you need to quickly, frame, if the goal is to study the puff at the proper level, then start from the bare very thing :) Personally, I myself lasted a month on the bare, meaning the study of theory and so on :) And yet I moved back :)

R
Roman Frank, 2017-04-20
@Akellacom

I advise you to take a mini-framework for your actions. Many of them are good at ORM for example.
https://fatfreeframework.com/3.6/home
https://lumen.laravel.com/
Often use fatfree for some small things

M
maximw, 2017-04-20
@maximw

If the scripter is only from the database - pure PHP
If there is still an output to the browser, routing, some kind of authorization, then the framework is to your liking.

N
niksee, 2017-04-20
@niksee

php, just study " phpfaq.ru/mysql/slashes "

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question