2017 © Pedro Peláez
 

library postgresql-database-class

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

image

seinopsys/postgresql-database-class

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 13 Versions
  • 14 % Grown

The README.md

PostgresDb Build Status Latest Stable Version Total Downloads License

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., (*1)

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), (*2)

composer require seinopsys/postgresql-database-class:^3.0

Usage

$db = new \SeinopSys\PostgresDb($database_name, $host, $username, $password);

For a more in-depth guide see USAGE.md, (*3)

Upgrading from 2.x

  1. Removed deprecated methods, (*4)

    These methods were deprecated in version 2.x and have been removed in 3.x. Use the renamed variants as indicated below:, (*5)

    2.x 3.x
    $db->rawQuery(…); $db->query(…);
    $db->rawQuerySingle(…); $db->querySingle(…);
    $db->pdo(); $db->getConnection();
  2. Namespace change, (*6)

    As of 3.x - to comply fully with the PSR-2 coding standard - the class now resides in the SeinopSys namespace. Here's a handy table to show what you need to change and how:, (*7)

    2.x 3.x
    $db = new PostgresDb(…); $db = new \SeinopSys\PostgresDb(…);
    $db = new \PostgresDb(…); $db = new \SeinopSys\PostgresDb(…);
    use \PostgresDb;

    $db = new PostgresDb(…);

    |, (*8)

    use \SeinopSys\PostgresDb;

    $db = new PostgresDb(…);

    |, (*9)

  3. Internal code structure changes, (*10)

    As of 3.x all private/protected methods and properties have dropped the _ prefix, so be sure to update your wrapper class (if you use one)., (*11)

The Versions

22/02 2018

dev-master

9999999-dev

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  Sources   Download

GPL-3.0 GPL-3.0-or-later

The Requires

  • php >=5.4
  • ext-pdo *
  • ext-pdo_pgsql *

 

22/02 2018

v2.1.0

2.1.0.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  Sources   Download

GPL-3.0-or-later

The Requires

  • php >=5.4
  • ext-pdo *
  • ext-pdo_pgsql *

 

22/02 2018

dev-fix-returning

dev-fix-returning

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  Sources   Download

GPL-3.0-or-later

The Requires

  • php >=5.4
  • ext-pdo *
  • ext-pdo_pgsql *

 

22/02 2018

v2.0.8

2.0.8.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  Sources   Download

GPL-3.0-or-later

The Requires

  • php >=5.4
  • ext-pdo *
  • ext-pdo_pgsql *

 

22/02 2018

dev-php-5.4-support

dev-php-5.4-support

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  Sources   Download

GPL-3.0-or-later

The Requires

  • php >=5.4
  • ext-pdo *
  • ext-pdo_pgsql *

 

27/01 2018

v2.0.7

2.0.7.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on ThingEngineer's MysqliDb class

  Sources   Download

GPL-3.0 GPL-3.0-or-later

The Requires

  • php >=5.6

 

08/10 2017

v2.0.6

2.0.6.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

25/07 2017

v2.0.5

2.0.5.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

23/07 2017

v2.0.4

2.0.4.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

17/07 2017

v2.0.3

2.0.3.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6

 

06/07 2017

v1.1.1

1.1.1.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6.0

 

14/04 2017

v1.1.0

1.1.0.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6.0

 

14/04 2017

v1.0.0

1.0.0.0

PHP wrapper class for PDO-based interaction with PostgreSQL databases, heavily based on joshcam/mysqli-database-class

  Sources   Download

GPL-3.0

The Requires

  • php >=5.6.0