PHPackages                             maharder/postgresql-orm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. maharder/postgresql-orm

ActiveLibrary[Database &amp; ORM](/categories/database)

maharder/postgresql-orm
=======================

PostgreSQL ORM Class for plain uses without models

1.0.0(4y ago)02MITPHPPHP &gt;=7.2

Since May 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Gokujo/postgresql-orm)[ Packagist](https://packagist.org/packages/maharder/postgresql-orm)[ Docs](https://github.com/Gokujo/postgresql-orm)[ Fund](https://paypal.me/MaximH)[ Fund](https://sobe.ru/na/devcraftclub)[ RSS](/packages/maharder-postgresql-orm/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

[![PHP Version](https://camo.githubusercontent.com/f2a08bdd315f6740ed2e91e9e2697de1754a947b968ad708cd565a50e0357520/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d616861726465722f706f737467726573716c2d6f726d)](https://camo.githubusercontent.com/f2a08bdd315f6740ed2e91e9e2697de1754a947b968ad708cd565a50e0357520/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d616861726465722f706f737467726573716c2d6f726d)[![GitHub code size in bytes](https://camo.githubusercontent.com/3bca75dd01606b026d78fad119916c431314e561d143e7d9061b669cb1df7087/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f476f6b756a6f2f706f737467726573716c2d6f726d)](https://camo.githubusercontent.com/3bca75dd01606b026d78fad119916c431314e561d143e7d9061b669cb1df7087/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f476f6b756a6f2f706f737467726573716c2d6f726d)[![GitHub release (latest by date)](https://camo.githubusercontent.com/cab36e224584f138adec5862c011accd312002e542f307fb2870003372a6b31f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f476f6b756a6f2f706f737467726573716c2d6f726d)](https://camo.githubusercontent.com/cab36e224584f138adec5862c011accd312002e542f307fb2870003372a6b31f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f476f6b756a6f2f706f737467726573716c2d6f726d)

---

PostgreSQL ORM Class
====================

[](#postgresql-orm-class)

I was looking for a class that works with postgres but doesn't required to create and manage models. Only for transactions.

This class uses the PHP PDO connection, so you have to enable `pdo_pgsql` in your php.ini. While I was writing this class I used PHP version 7.2. I recommend this version or a higher one.

It was my first commit to packagist so if some issues are encountered please let me know.

Documentation
=============

[](#documentation)

Namespaces
----------

[](#namespaces)

### MaHarder

[](#maharder)

#### Classes

[](#classes)

ClassDescription[`PostgreSQL`](./docs/classes/MaHarder/PostgreSQL.md)PostgreSQL Class.Usage
-----

[](#usage)

```
$postgresql = new PostgreSQL('database', 'user', 'password', 'localhost', 5432);
```

### Standalone

[](#standalone)

Download latest release and extract it.

Either you include it with `include_once (__DIR__ . '/classes/PostgreSQL.php);` or call a use for it `use MaHarder\classes\PostgreSQL;`

If you change the paths, so use the include

### Composer

[](#composer)

Run

```
composer require maharder/postgresql-orm

```

Now you can use the class

---

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1511d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19776684?v=4)[Maxim Harder](/maintainers/Gokujo)[@Gokujo](https://github.com/Gokujo)

---

Top Contributors

[![Gokujo](https://avatars.githubusercontent.com/u/19776684?v=4)](https://github.com/Gokujo "Gokujo (6 commits)")

---

Tags

ormpostgresqlpostgrespdoclasspsql

### Embed Badge

![Health badge](/badges/maharder-postgresql-orm/health.svg)

```
[![Health](https://phpackages.com/badges/maharder-postgresql-orm/health.svg)](https://phpackages.com/packages/maharder-postgresql-orm)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58825.9M54](/packages/scienta-doctrine-json-functions)[aura/sql

A PDO extension that provides lazy connections, array quoting, query profiling, value binding, and convenience methods for common fetch styles. Because it extends PDO, existing code that uses PDO can use this without any changes to the existing code.

5892.7M55](/packages/aura-sql)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4883.1M38](/packages/aura-sqlquery)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

44243.2k4](/packages/aura-sqlschema)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

41256.9k7](/packages/atlas-query)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

846.1k](/packages/tommyknocker-pdo-database-class)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
