C
C
CTR102021-01-22 08:26:05
PHP
CTR10, 2021-01-22 08:26:05

How to replace ReadBeanPHP?

Please tell me the library for working with the database that is most similar to ReadBeanPHP.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2021-01-22
@CTR10

It must be understood that a full replacement does not exist.
This program is two stupid fellows, the same from the face, from the cartoon about Vovka in the distant kingdom.
Who honestly try to do what the owner tells them, but due to congenital dementia, they do everything wrong.
And all from the fact that she wants to be a nanny for a programmer.
But if a programmer needs a nanny, then such a "specialist" must be driven out of the profession with a filthy broom.
And if you want to stay, then yes, you have to learn to do something yourself. hands.
Think in advance and create a database schema. And change only in case of a conscious need, and not because you suddenly passed the wrong parameter to the database that you wanted.
Think ahead and write SQL queries. Instead of waiting for a stupid nanny to write all of them for you.
Understand how PHP works with a database.
Therefore, as an inoculation against the shitty code, I will recommend first
- to learn the database device. Create all your schemas by hand
- learn SQL. Write all your queries by hand
- master working with a database from PHP at a basic level, through native PDO.
After all this will bounce off the teeth, and after a couple of completed projects, some redundancy and repeatability of the code will obviously be visible - start writing your first Table Gateway. Well, or if you don’t feel like it at all, then master something hype, but at least not so marginal, for example, Eloquent.

E
Eugene, 2021-01-28
@Angel_D13

And what's the problem, is there a desire to find an even simpler library? So it couldn't be easier. I'm just learning, but I'm faced with the fact that I'm moving from readbean to creating my own custom class. I'm not sure if this is the best option, you need to do something universal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question