Answer the question
In order to leave comments, you need to log in
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
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 .
On a small project, I once used https://github.com/envms/fluentpdo
, maybe it will work for you too)
Is there anything in nature for these needs?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question