Download the PHP package makise-co/postgres without Composer

On this page you can find all versions of the php package makise-co/postgres. 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 postgres

postgres-client

A Pure PHP coroutine client for PostgreSQL based on libpq

Inspired by amphp/postgres

Installation

This package can be installed as a Composer dependency.

Requirements

Supported underlying drivers

Driver Buffered Mode Unbuffered Mode Listen Postgres Arrays Convertation
Pq Yes Yes Yes Yes
PgSql Yes No Yes Yes
Swoole Yes No No No

Benchmarks

Driver Try 1 Try 2 Try 3 Sum Performance vs PDO
PDO PGSQL (raw) 0.594816 0.588032 0.597217 1.780065 -
Pq (buffered) 0.670369 0.679673 0.691890 2.041932 -12.8245%
Pq (unbuffered) 1.202617 1.248877 1.204900 3.656394 -51.3164%
PgSql 0.888312 0.886494 0.890477 2.665283 -33.2129%
Swoole 0.656156 0.654318 0.667154 1.977628 -9.9899%
Swoole (raw) 0.576667 0.589855 0.578105 1.744627 +2.0313%
Pq (raw) 0.643230 0.645116 0.656374 1.944720 -8.4668%
PgSql (raw) 0.576180 0.583124 0.577715 1.737019 +2.4782%

* (raw) means that is a benchmark without any abstractions and PHP code execution.

* The PgSql (raw) is much faster than Pgsql in this benchmark because there is no code to convert results to native PHP types.

All benchmarks can be found in the benchmark directory.

Documentation & Examples

Prepared statements and parameterized queries support named placeholders, as well as ? and standard numeric (i.e. $1) placeholders.

More examples can be found in the examples directory.

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of postgres with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-swoole Version >=4.4
makise-co/sql-common Version ^1.0
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 makise-co/postgres contains the following files

Loading the files please wait ....