Download the PHP package forrest79/phpgsql-nette without Composer

On this page you can find all versions of the php package forrest79/phpgsql-nette. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpgsql-nette

PhPgSql - Tracy

Build

Use PhPgSql with Tracy from Nette Framework.

Introduction

Tracy bar panel to show queries executed in your database and bluescreen extension to show failed database query.

Installation

The recommended way to install PhPgSql - Tracy is through Composer:

Using

Bar panel

Bar panel will show all queries executed in your database. You copy query to the clipboard, mark long run queries, mark repeated queries, show notices and non parsed columns.

You can add the panel for each database connection:

$backtraceContinueIterate parameter

Panel is showing links to the PHP source files, where the query was executed. This is made using PHP function debug_backtrace(). This function returns the whole call stack. To get the correct place in the PHP source file, we must ignore some internal library classes where the query is really executed and iterated up to the user code, that run this execution.

Basically, BarPanel ignores all classes/function from PhPgSql library to show the most accurate place in the PHP source.

When you use some own custom wrapping objects, you want to ignore it in the call stack as well. You can some callable and pass it to the $backtraceContinueIterate Parameter. For example:

Bluescreen

Bluescreen should be registered just once (it doesn't matter how many DB connections you have):

With this, when some Forrest79\PhPgSql\Db\Exceptions\QueryException is thrown, you will see the SQL query and the parameters (and the SQL query with the parameters) on your BlueScreen.

Query dumper

SQL queries are dumped in Tracy\Bar and in Tracy\BlueScreen and you can use different dumpers/formatters. Three are included:

Or you can use your own query dumper, just create a class-extending abstract class PhPgSql\Tracy\QueryDumper.


All versions of phpgsql-nette with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
forrest79/phpgsql Version ^2.0
tracy/tracy Version ^2.10
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package forrest79/phpgsql-nette contains the following files

Loading the files please wait ...