pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vincent <vinny@xs4all.nl>
To: pgsql-php@postgresql.org
Subject: Re: Open source project using php PostgreSQL functions?
Date: Thu, 21 Nov 2013 18:06:38 +0100
Message-ID: <528E3D9E.3000900@xs4all.nl> (raw)
In-Reply-To: <528E3841.30007@wykids.org>
References: <528E3841.30007@wykids.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-php>

On 21-11-13 17:43, Jeff Ross wrote:
> Hi all,
>
> I'm looking at moving some code away from the long deprecated PEAR::DB 
> but I want to move to the standard php Postgresql functions and not 
> another database abstraction layer like MDB2 or ADODB or even PDO.  
> This specific project will never use anything but PostgreSQL as its 
> database.
>
> Does anyone know of an open source php based project that I might look 
> through to see some sample code a little more complex than the 
> examples in the php documentation?
>
> Thanks,
>
> Jeff Ross
>
>
>

PDO is pretty much standard PHP these days, allthough I don't like it 
much myself.
Why not write a simple class that does the database access for you? All 
you really need is a method that
executes the query and either returns the result or throws an exception 
when something goes wrong.
Anything ready-made is going to be a DAL, because that's what works best 
and it's easier to maintain.


-- 
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php



view thread (6+ messages)  latest in thread

Message-ID: <528E3D9E.3000900@xs4all.nl>
Permalink:  ../528E3D9E.3000900@xs4all.nl/
Also on:    postgresql.org/message-id/528E3D9E.3000900@xs4all.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: vinny@xs4all.nl
  Subject: Re: Open source project using php PostgreSQL functions?
  In-Reply-To: <528E3D9E.3000900@xs4all.nl>
  References: <528E3841.30007@wykids.org> <528E3D9E.3000900@xs4all.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox