huasofoundries / phppgadmin6
Like phpmyadmin but for postgres
Installs: 489
Dependents: 0
Suggesters: 0
Security: 0
Stars: 46
Watchers: 13
Forks: 18
Open Issues: 31
Type:project
Requires
- php: >=7.2
- ext-json: *
- ext-mbstring: *
- ext-pgsql: *
- ext-xml: *
- adodb/adodb-php: ^5.20
- slim/flash: ^0.4.0
- slim/slim: ^3.6
- slim/twig-view: ~2.5.1
- symfony/yaml: ^5.1
- twig/twig: ~3
Requires (Dev)
- codeception/codeception: *
- codeception/module-asserts: ^1.1
- ergebnis/composer-normalize: ^2.2
- ergebnis/php-cs-fixer-config: ^2.0
- filp/whoops: ^2.7
- friendsofphp/php-cs-fixer: ^2.16
- kint-php/kint: ~3.3
- ocramius/package-versions: ~1.4.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan: ^0.12.14
- rector/rector-prefixed: ^0.8.29
- staabm/annotate-pull-request-from-checkstyle: ^1.4
- vimeo/psalm: ~3.9.3
- dev-develop
- 6.1.3
- 6.1.2
- 6.1.1
- v6.1.0
- v6.0.0
- v6.0.0-RC9
- 6.0.0-RC8
- 6.0.0-RC7
- 6.0.0-RC6
- 6.0.0-RC5
- 6.0.0-RC4
- 6.0.0-RC3
- 6.0.0-RC2
- 6.0.0-RC1
- 6.0.0-beta.52
- 6.0.0-beta.51
- 6.0.0-beta.50
- 6.0.0-beta.49
- 6.0.0-beta.48
- 6.0.0-beta.47
- 6.0.0-beta.46
- 6.0.0-beta.45
- 6.0.0-beta.44
- 6.0.0-beta.43
- 6.0.0-beta.42
- 6.0.0-beta.41
- 6.0.0-beta.40
- 6.0.0-beta.39
- 6.0.0-beta.38
- 6.0.0-beta.37
- 6.0.0-beta.36
- 6.0.0-beta.35
- 6.0.0-beta.34
- 6.0.0-beta.33
- 6.0.0-beta.32
- 6.0.0-beta.31
- 6.0.0-beta.30
- 6.0.0-beta.29
- 6.0.0-beta.28
- 6.0.0-beta.27
- 6.0.0-beta.26
- 6.0.0-beta.25
- 6.0.0-beta.24
- 6.0.0-beta.23
- 6.0.0-beta.22
- 6.0.0-beta.21
- 6.0.0-beta.20
- 6.0.0-beta.19
- 6.0.0-beta.18
- 6.0.0-beta.17
- 6.0.0-beta.16
- 6.0.0-beta.15
- 6.0.0-beta.14
- 6.0.0-beta.13
- 6.0.0-beta.12
- 6.0.0-beta.11
- 6.0.0-beta.10
- 6.0.0-beta.9
- 6.0.0-beta.8
- 6.0.0-beta.7
- 6.0.0-beta.6
- 6.0.0-beta.5
- 6.0.0-beta4
- 6.0.0-beta3
- 6.0.0-beta2
- 6.0.0-beta1
- 6.0.0-alpha3
- dev-dependabot/npm_and_yarn/json5-2.2.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/composer/twig/twig-3.4.3
- dev-dependabot/npm_and_yarn/terser-5.14.2
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/composer/adodb/adodb-php-5.21.4
- dev-dependabot/npm_and_yarn/browserslist-4.18.1
- dev-dependabot/npm_and_yarn/trim-newlines-3.0.1
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/composer/pestphp/pest-1.13.0
- dev-dependabot/composer/vimeo/psalm-4.9.2
- dev-dependabot/composer/phpstan/phpstan-0.12.94
- dev-dependabot/composer/phpmd/phpmd-2.10.2
- dev-dependabot/composer/filp/whoops-2.14.0
- dev-dependabot/composer/slim/slim-4.8.1
- dev-dependabot/npm_and_yarn/normalize-url-4.5.1
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/composer/rector/rector-prefixed-0.10.19
- dev-dependabot/composer/ergebnis/php-cs-fixer-config-2.14.0
- dev-dependabot/composer/friendsofphp/php-cs-fixer-2.18.7
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/php-parallel-lint/php-parallel-lint-1.3.0
- dev-feature/bugfixes_from_wrong_bisect
- dev-fix_wrong_bisect
- dev-master
- dev-legacy
This package is auto-updated.
Last update: 2024-11-06 23:32:16 UTC
README
PHP Based administration tool for PostgreSQL. Blazing fast routing with Slim Framework 3 and solid abstraction layer in its core with AdoDB.
This project is inspired in phppgadmin. Said project stalled a few years ago so we took it, refactored almost entirely and added:
- Composer Installation and dependency management
- PSR-2 Coding Standard (Will evolve to PSR-12 soon)
- PSR-4 Autoloading
- Removal of global variables (WIP)
- Removal of superglobals in favour of PSR-7 Message interfaces (WIP)
- Full PHP 7+ support
- Usage of Dependency Injection compliant with PSR-11 Container interface
- Support for PG 9.3+ features (Materialized Views, BRIN Indexes, etc)
- Nice urls
Requirements
- PHP 7.1+
- PostgreSQL v9+
- ext-psql
- Composer
(If you're using PostgreSQL 7.4 or 8.x, or PHP 5.6+, you can still try versions RC2 and below, but you should really, realy upgrade).
Installation
Using Composer (recommended)
Install Composer in your machine.
Install with composer running the following command in your shell (replacing whith your desired folder name)
composer create-project huasofoundries/phppgadmin6 <FOLDER> v6.0.* --no-dev --prefer-dist
Alternatively, clone this repo and run (inside then folder where the project was cloned)
composer install --no-dev
Configuration
You can set the config options either in a config.inc.php
(refer to config.inc.example.php for an example)
AND/OR a config.yml. The use of the latter is complely optional. Keep in mind the config entries are merged giving
precedence to the ones in the YAML file.
Server Blocks
Configuration has a servers
entry whose details are in their on Wiki section: "Config: Servers"
Rewrite Rules
As this project is built over Slim Framework 3, you'll need some rewrite rules for nice-urls to work.
Please refer to Slim Framework 3 instructions on rewrite rules config for:
Running inside a subfolder
If you're planning to run phpPgAdmin6 under a subfolder, make sure you set it explicitly in the config file(s). I gave up trying to figure out the subfolder automatically and it's outside of this project's scope.
To set it in config.inc.php
$conf = [
'subfolder' => '/phppga_subfolder',
'other config...' => 'sure'
];
To set it in config.yml
default_lang: auto subfolder: '/phppha_subfolder'
Remember that values set on the yml
config take precedence.
Besides, remember to modify your webserver configuration accordingly
location /subfolder/ {
try_files $uri $uri/ /subfolder/index.php$is_args$args;
}
Instead of
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
(Implementation details for your specific setup fall outside of this package's scope)
Installing dev branch
If there's something broken and I cannot risk breaking the rest to fix your issue, I might push a fix or feature to develop branch. Said branch can be installed as
composer create-project huasofoundries/phppgadmin6 <FOLDER> v6.*.*@beta --no-dev --prefer-dist
(or, you know, clone the repo and make sure you're in develop branch)
License
This work is licensed under MIT or GPL 2.0 (or any later version) or BSD-3-Clause You can choose between one of them if you use this work.
SPDX-License-Identifier: MIT OR GPL-2.0-or-later OR BSD-3-Clause
Credits & FAQ
We're preserving due credits to all people that contributed in the past, as well as other release notes contained in the old version of phppgadmin
- Bugs
- Changelog (outdated)
- Credits
- Developers
- FAQ (outdated)
- History (outdated)
- Translators
Kudos to all people that helped build the original project, upon which this one was built.