Re: Looking for a good working PDO and/or mysqli database class to get started with OOP
| From: | Bastien | Date: | Fri, 31 May 2013 02:57:56 +0000 |
| Subject: | Re: Looking for a good working PDO and/or mysqli database class to get started with OOP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321287@lists.php.net to get a copy of this message | ||
Bastien Koert
On 2013-05-30, at 10:30 PM, tamouse mailing lists <tamouse.lists@gmail.com> wrote:
> On Thu, May 30, 2013 at 8:45 PM, Stephen <stephen-d@rogers.com> wrote:
>> On 13-05-30 09:36 PM, dealTek wrote:
>>>
>>> Hi all, Thanks for your help...
>>>
>>> I'm looking for a very good, pre made, working PDO and/or mysqli database
>>> class (in a wrapper) - to get started with, that has all the basic needs
>>> like UPDATE - INSERT - DELETE - QUERY etc. That would be very helpful. I'm
>>> also trying to learn OOP, and creating my own class to start out is over my
>>> head, so one that is recommended here would be a good start.
>> Hmmm..... PDO **IS** an OOP implementation. Why would you want to
>> encapsulate it?
>>
>> Accessing a database requires SQL with arguments dependant on YOUR database
>> schema.
>>
>> You have to do that work; there is no way around it.
>
> Sounds like the OP is asking for a pre-built CRUD interface that
> adapts to his tables and their relationships. It's a fair question,
> just one I don't have an answer to. There must be some kind of ORM for
> PHP?
Propel? Eloquent? Doctrine?
And others ...
Bastien