PHPackages                             linkprofit-cpa/yii2-referral-filter - 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. linkprofit-cpa/yii2-referral-filter

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

linkprofit-cpa/yii2-referral-filter
===================================

Referral filter

v1.0.0(8y ago)012MITPHPPHP &gt;=5.5.0

Since Jan 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/linkprofit-cpa/yii2-referral-filter)[ Packagist](https://packagist.org/packages/linkprofit-cpa/yii2-referral-filter)[ Docs](https://github.com/linkprofit-cpa/yii2-referral-filter)[ RSS](/packages/linkprofit-cpa-yii2-referral-filter/feed)WikiDiscussions master Synced 3d ago

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

ReferralFilter
==============

[](#referralfilter)

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

[](#installation)

`composer require linkprofit-cpa/yii2-referral-filter`

Usage
-----

[](#usage)

Add code above to the controller behaviors section:

```
/**
 * @inheritdoc
 */
public function behaviors()
{
    /* 1 day in seconds, until browser closed by default */
    $expire = 60 * 60 * 24;
    return [
        [
            'class' => 'linkprofit\ReferralFilter\ReferralFilter',
            'sessionMarkers' => [
                'data1', 'data2', 'data3', 'data4', 'data5', 'chan'
            ],
            'cookiesMarkers' => [
                'refid', 'cfads', 'CampaignID'
            ],
            'cookiesExpire' => $expire
        ],
    ];
```

Session markers are written to `$_SESSION['markers']['markerName']`, cookies markers are written directly to `$_COOKIE['markerName']`;

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3090d ago

Major Versions

v0.9.0 → v1.0.02018-01-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28754791?v=4)[Linkprofit](/maintainers/linkprofit-cpa)[@linkprofit-cpa](https://github.com/linkprofit-cpa)

---

Top Contributors

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

---

Tags

sessioncookiesyii2referral

### Embed Badge

![Health badge](/badges/linkprofit-cpa-yii2-referral-filter/health.svg)

```
[![Health](https://phpackages.com/badges/linkprofit-cpa-yii2-referral-filter/health.svg)](https://phpackages.com/packages/linkprofit-cpa-yii2-referral-filter)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)

PHPackages © 2026

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