PHPackages                             linkage/doctrine-row-level-security - 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. [Security](/categories/security)
4. /
5. linkage/doctrine-row-level-security

ActiveLibrary[Security](/categories/security)

linkage/doctrine-row-level-security
===================================

v2.0.0(1y ago)311.1k↓52.7%[1 issues](https://github.com/77web/doctrine-postgresql-row-level-security/issues)MITPHPPHP &gt;=8.2

Since Mar 17Pushed 1y agoCompare

[ Source](https://github.com/77web/doctrine-postgresql-row-level-security)[ Packagist](https://packagist.org/packages/linkage/doctrine-row-level-security)[ RSS](/packages/linkage-doctrine-row-level-security/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

linkage/doctrine-row-level-security
===================================

[](#linkagedoctrine-row-level-security)

A package to provide projects with Doctrine ORM PostgreSQL's Row Level Security features.

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

[](#installation)

1. Install this package via composer.

```
composer require linkage/doctrine-row-level-security
```

2. Add this package's EventSubscriber to your doctrine configuration

for Symfony:

```
# services.yaml
services:
    rls.subscriber:
        class: Linkage\DoctrineRowLevelSecurity\RowLevelSecurityListener
        tags:
            - { name: doctrine.event_subscriber, connection: default }
```

for laravel-doctrine/orm:

```
// config/doctrine.php
            'events'        => [
                'listeners'   => [],
                'subscribers' => [
                    Linkage\DoctrineRowLevelSecurity\RowLevelSecurityListener::class,
                ],
            ],
```

Usage
-----

[](#usage)

Add "#\[RowLevelSecurity\]" attribute to your Entity associated with table under Row Level Security.

There are 3 required options for RowLevelSecurity attribute:

- name: a name for policy which should be attached to the table
- role: a name of role which should be attached to RowLevelSecurity users
- using: a sql clause which describes the role's access condition

Then you can use doctrine:migrations:diff or doctrine:schema:create command as usual. SQL to enable Row Level Security will appear in your migration files or be executed on schema creation.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~362 days

Total

3

Last Release

479d ago

Major Versions

v0.9.0 → v1.0.02023-08-02

v1.0.0 → v2.0.02025-03-11

PHP version history (2 changes)v0.9.0PHP &gt;=8.1

v1.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/144969384?v=4)[nanaweb](/maintainers/nanaweb)[@nanaweb](https://github.com/nanaweb)

---

Top Contributors

[![77web](https://avatars.githubusercontent.com/u/296615?v=4)](https://github.com/77web "77web (33 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/linkage-doctrine-row-level-security/health.svg)

```
[![Health](https://phpackages.com/badges/linkage-doctrine-row-level-security/health.svg)](https://phpackages.com/packages/linkage-doctrine-row-level-security)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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