PHPackages                             barkov/pgsqlint - 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. barkov/pgsqlint

ActiveYii2-extension[Database &amp; ORM](/categories/database)

barkov/pgsqlint
===============

Enable work with PostgreSQL array of integer, in AR.

016PHP

Since Jan 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/barkovrman/yii2pgsqlintarray)[ Packagist](https://packagist.org/packages/barkov/pgsqlint)[ RSS](/packages/barkov-pgsqlint/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Enable work with PostgreSQL array of integer, in yii2 ActiveRecord.

This extension contains validator and behavior.

Installation
------------

[](#installation)

The preferred way to install this extension is through composer.

```
php composer.phar require --prefer-dist barkov/pgsqlint "dev-master"

```

or add

```
"barkov/pgsqlint": "dev-master"

```

to the require section of your composer.json file.

Usage
-----

[](#usage)

**Validator**

use barkov\\pgsqlint\\PgIntegerArrayValidator; ...

```
    public function rules(){
        return [['field_name', 'intArray', 'skipOnEmpty' => true]];
    }

```

**Behavior**

In your ActiveRecord model.

```
 public function behaviors(){
        return
        [
            'PgIntegerArrayBehavior' => [
                'class' =>  \barkov\pgsqlint\PgIntegerArrayBehavior::className(),
                'field' => 'field_name',
            ]
         ]
    }
```

*Note: If use as behavior - validator included. You don't need adding validation.*

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19613130?v=4)[Barkov.Rman](/maintainers/barkovrman)[@barkovrman](https://github.com/barkovrman)

---

Top Contributors

[![barkovrman](https://avatars.githubusercontent.com/u/19613130?v=4)](https://github.com/barkovrman "barkovrman (10 commits)")

### Embed Badge

![Health badge](/badges/barkov-pgsqlint/health.svg)

```
[![Health](https://phpackages.com/badges/barkov-pgsqlint/health.svg)](https://phpackages.com/packages/barkov-pgsqlint)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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