2017 © Pedro Peláez
 

library pg-php

An implementation of the Postgres TCP protocol in pure PHP

image

derekchan/pg-php

An implementation of the Postgres TCP protocol in pure PHP

  • Friday, January 26, 2018
  • by derekchan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 184 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PgPhp - An implementation of the postgre protocol in pure PHP

A pure PHP PostgreSQL connector that works - sometimes you just need a quick and dirty way to connect to PostgreSQL, but for any reasons you do not have access to the native driver, and you do not care about performance., (*1)

Currently only works in Linux / UNIX-like environment as it depends on "/usr/bin/hexdump", (*2)

Usage

See examples.php, (*3)

Installation

composer require derekchan/pg-php

From the original author (@BraveSirRobin)

Development status

Development status : Toy. Works for me, and it supports the protocol COPY command too, which is nice., (*4)

Motivation

I wrote this library as a proof of concept and to learn a bit more about different TCP protocols. The main (only?) reason for wanting to do this is to be able to write an "Event Machine" / "Twisted" type of server where you can do asynchronous I.O. to several different kinds of application endpoint, e.g. RabbitMQ, Postgres, MySql, HTTP, etc. etc., (*5)

Future

Currently, and for the forseeable future I'll be devoting my "open source" time to my Amqphp project, but eventually I'd like to expand this to be a fast, fully asyncronous, PHP-implemented "business process server"., (*6)

The Versions

26/01 2018

dev-master

9999999-dev

An implementation of the Postgres TCP protocol in pure PHP

  Sources   Download

LGPL LGPL-2.1-or-later

The Requires

  • php >=5.3.0

 

07/08 2015

0.0.1

0.0.1.0

An implementation of the Postgres TCP protocol in pure PHP

  Sources   Download

LGPL

The Requires

  • php >=5.3.0