lagdo/dbadmin-driver-pgsql

DbAdmin driver for PostgreSQL.

v0.8.0 2022-01-20 03:51 UTC

This package is auto-updated.

Last update: 2022-06-29 02:03:22 UTC


README

Scrutinizer Code Quality StyleCI Build Status Coverage Status

Latest Stable Version Total Downloads License

DbAdmin drivers for PostgreSQL

This package is based on Adminer.

It provides PostgreSQL drivers for Jaxon DbAdmin, and implements the interfaces defined in https://github.com/lagdo/dbadmin-driver.

It requires either the php-pgsql or the php-pdo_pgsql PHP extension to be installed, and uses the former by default.

Installation

Install with Composer.

composer require lagdo/dbadmin-driver-pgsql

Configuration

Declare the PostgreSQL servers in the packages section on the Jaxon config file. Set the driver option to pgsql.

    'app' => [
        'packages' => [
            Lagdo\DbAdmin\Package::class => [
                'servers' => [
                    'server_id' => [
                        'driver' => 'pgsql',
                        'name' => '',     // The name to be displayed in the dashboard UI.
                        'host' => '',     // The database host name or address.
                        'port' => 0,      // The database port. Optional.
                        'username' => '', // The database user credentials.
                        'password' => '', // The database user credentials.
                    ],
                ],
            ],
        ],
    ],

Check the Jaxon DbAdmin documentation for more information about the package usage.