PHPackages                             cedriclombardot/propel-visibility-behavior - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cedriclombardot/propel-visibility-behavior

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cedriclombardot/propel-visibility-behavior
==========================================

Propel behavior that helps you to set a visibility per fields

0.0.2(12y ago)21.0kMITPHP

Since Jul 28Pushed 12y ago1 watchersCompare

[ Source](https://github.com/cedriclombardot/VisibilityBehavior)[ Packagist](https://packagist.org/packages/cedriclombardot/propel-visibility-behavior)[ RSS](/packages/cedriclombardot-propel-visibility-behavior/feed)WikiDiscussions master Synced 3w ago

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

VisibilityBehavior
==================

[](#visibilitybehavior)

[![Build Status](https://camo.githubusercontent.com/0dba5cd010bfdefdff918e3a62d2e45e390a5fb4aff7427c7b793470be6a58ca/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6365647269636c6f6d626172646f742f5669736962696c6974794265686176696f722e706e67)](http://travis-ci.org/cedriclombardot/VisibilityBehavior)

The **VisibilityBehavior** behavior allows you to add visibility column per field and manage visible datas per user role.

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

[](#installation)

Cherry-pick the `VisibilityBehavior.php` file is `src/`, put it somewhere, then add the following line to your `propel.ini` or `build.properties` configuration file:

```
propel.behavior.visibility.class = path.to.VisibilityBehavior
```

Usage
-----

[](#usage)

Just add the following XML tag in your `schema.xml` file:

```

```

The **visibility** behavior requires four parameters to work:

- `visibilities`: a finite set of visibilities as comma separated values;
- `default_visibility`: the initial state, part of set of visibilities;
- `hierarchy`: a set of hierarchies. As you can see, you can add as many `hierarchy` parameters as you want.
- `apply_to`: the list of column to apply the visibility behavior

Each hierarchy has to follow this pattern:

```
when it's visible for VISIBILITY_1 it's visible for VISIBILITY_2

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

4714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52d4597d48c6639975152add5a1dccb0533f51f811cd124fc01a34938bbbf197?d=identicon)[cedriclombardot](/maintainers/cedriclombardot)

---

Top Contributors

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

---

Tags

Behaviorpropelprivacyvisibility

### Embed Badge

![Health badge](/badges/cedriclombardot-propel-visibility-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/cedriclombardot-propel-visibility-behavior/health.svg)](https://phpackages.com/packages/cedriclombardot-propel-visibility-behavior)
```

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

219416.5k](/packages/statikbe-laravel-cookie-consent)[craftyshadow/propel-equalnest-behavior

This behavior provides a way to define relations between objects that have equal hierarchy (friendship).

1531.6k](/packages/craftyshadow-propel-equalnest-behavior)[opengento/module-gdpr

Gdpr Compliance Module for Magento 2

14584.6k](/packages/opengento-module-gdpr)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3031.8k](/packages/sjaakp-yii2-taggable)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1175.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)[bizley/cookiemonster

Yii extension to manage cookie warning.

1922.4k1](/packages/bizley-cookiemonster)

PHPackages © 2026

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