Download the PHP package seinopsys/postgresql-database-class without Composer
On this page you can find all versions of the php package seinopsys/postgresql-database-class. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seinopsys/postgresql-database-class
More information about seinopsys/postgresql-database-class
Files in seinopsys/postgresql-database-class
Package postgresql-database-class
Short Description PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class
License GPL-3.0-or-later
Informations about the package postgresql-database-class
PostgresDb
This project is a PostgreSQL version of ThingEngineer's MysqliDb Class, that supports the basic functionality and syntax provided by said class, tailored specifically to PostgreSQL.
Installation
This class requires PHP 5.4+ or 7+ to work. You can either place the src/PostgresDb.php
in your project and require/include it, or use Composer (strongly recommended)
composer require seinopsys/postgresql-database-class:^3.0
Usage
For a more in-depth guide see USAGE.md
Upgrading from 2.x
-
Removed deprecated methods
These methods were deprecated in version
2.x
and have been removed in3.x
. Use the renamed variants as indicated below:2.x
3.x
$db->rawQuery(…);
$db->query(…);
$db->rawQuerySingle(…);
$db->querySingle(…);
$db->pdo();
$db->getConnection();
-
Namespace change
As of
3.x
- to comply fully with the PSR-2 coding standard - the class now resides in theSeinopSys
namespace. Here's a handy table to show what you need to change and how:2.x
3.x
$db = new PostgresDb(…);
$db = new \SeinopSys\PostgresDb(…);
$db = new \PostgresDb(…);
$db = new \SeinopSys\PostgresDb(…);
use \PostgresDb;
$db = new PostgresDb(…);use \SeinopSys\PostgresDb;
$db = new PostgresDb(…); -
Internal code structure changes
As of
3.x
allprivate
/protected
methods and properties have dropped the_
prefix, so be sure to update your wrapper class (if you use one).
All versions of postgresql-database-class with dependencies
ext-pdo Version *
ext-pdo_pgsql Version *