PHPackages                             jmjjg/cakephp3-postgres - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. jmjjg/cakephp3-postgres

ActiveCakephp-plugin[Validation &amp; Sanitization](/categories/validation)

jmjjg/cakephp3-postgres
=======================

CakePHP 3 plugin that provides classes for adding default validation rules from the database table schema.

1.0.0-RC1(9y ago)022[2 issues](https://github.com/jmjjg/cakephp3-postgres/issues)GPL-2.0+PLpgSQL

Since Jan 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jmjjg/cakephp3-postgres)[ Packagist](https://packagist.org/packages/jmjjg/cakephp3-postgres)[ Docs](https://github.com/jmjjg/cakephp3-postgres)[ RSS](/packages/jmjjg-cakephp3-postgres/feed)WikiDiscussions master Synced 2d ago

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

cakephp-postgres
================

[](#cakephp-postgres)

Description
-----------

[](#description)

CakePHP 3 plugin that provides classes for adding default validation rules from the database table schema.

Caching is enabled by default but can be disabled in the configuration or at run-time.

Tested with CakePHP 3.1.0, 3.2.2.

Main classes
------------

[](#main-classes)

AutovalidateBehavior reads various informations from the database table schema... and automatically adds those validation rules to the default ones.

Setup
-----

[](#setup)

Assuming the plugin is installed under plugins/Postgres.

Add the following to config/bootstrap.php:

```
    Plugin::load('Postgres', ['autoload' => true, 'bootstrap' => true]);
```

```
[
    // ...
    'Datasources.default.driver' => 'Postgres\Database\Driver\Postgres',
    // ...
    'Datasources.test.driver' => 'Postgres\Database\Driver\Postgres'
    // ...
```

Usage
-----

[](#usage)

The following code should be added to your table classes, inside the initialize() method.

Note that NULL and boolean TRUE and are equivalent as configuration values.

```
    public function initialize(array $config)
    {
        // ...
		$this->addBehavior('PostgresAutovalidate',
			[
				'className' => 'Postgres.Autovalidate',
				// Default values
				// 1°) Accepted validator names, as a string or an array of strings, NULL for any
				'accepted' => null,
				// 2°) Cache validation rules and their error messages ?
				'cache' => null,
				// 3°) Domain to use for error messages
				'domain' => 'postgres'
			]
		);
        // ...
    }
```

### Code quality

[](#code-quality)

```
sudo bash -c "( rm -r logs/quality ; find . -type f -regex '^\./\(logs/.*\.log\|tmp/.*\)$' ! -name 'empty' -exec rm {} \; )"
sudo -u apache ant quality -f vendor/jmjjg/cakephp3-postgres/vendor/Jenkins/build.xml
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

3450d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14168247?v=4)[Christian Buffin](/maintainers/jmjjg)[@jmjjg](https://github.com/jmjjg)

---

Top Contributors

[![jmjjg](https://avatars.githubusercontent.com/u/14168247?v=4)](https://github.com/jmjjg "jmjjg (8 commits)")

---

Tags

validationpostgresqlcakephp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jmjjg-cakephp3-postgres/health.svg)

```
[![Health](https://phpackages.com/badges/jmjjg-cakephp3-postgres/health.svg)](https://phpackages.com/packages/jmjjg-cakephp3-postgres)
```

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M170](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M199](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M43](/packages/dereuromark-cakephp-ide-helper)[admad/cakephp-i18n

A CakePHP plugin for I18n related tools.

4555.8k](/packages/admad-cakephp-i18n)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)

PHPackages © 2026

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