R
R
Romi2021-05-22 15:52:26
PHP
Romi, 2021-05-22 15:52:26

Where can I get a lightweight ORM for a small PHP project?

I'm doing a small project without a framework (but with Composer packages) and still there was a need for some kind of elementary database.

There are no special requirements for it, it is needed purely to store some configs or something like that, well, like a phone book in a smartphone :) i.e. performance is not critical.

Of course, I can do it on files - but somehow I don’t feel like doing scribbling :) I

thought to connect Doctrine - but I want something less cumbersome.

Is there anything in nature for these needs?

Ideally - some kind of Eloquent that writes everything to one file ))))))))) or something like that))

In general, do you know something like that?

Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
robert_ford, 2021-05-22
@robert_ford

You can use any ORM - they all work with SQLite.
The same Eloquent can be used without Lumen and Laravel via Capsule.
There is also Cycle ORM , you can simply "include" it.
Similar to Doctrine, implements the DataMapper pattern.
If you want something very simple (more like a Query Builder than an ORM) - see Medoo .

J
James026, 2021-05-23
@James026

On a small project, I once used https://github.com/envms/fluentpdo
, maybe it will work for you too)

A
Alexander Toropov, 2021-05-27
@nefone

Is there anything in nature for these needs?

Look at Packagist and choose what you like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question