PHPackages                             kikwik/referable-bundle - 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. kikwik/referable-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

kikwik/referable-bundle
=======================

Referable behaviour for Doctrine 2 entities

v2.0.3(4mo ago)042MITPHPPHP &gt;=7.1.3

Since Mar 14Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/kikwik/referable-bundle)[ Packagist](https://packagist.org/packages/kikwik/referable-bundle)[ RSS](/packages/kikwik-referable-bundle/feed)WikiDiscussions master Synced 1w ago

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

KikwikReferableBundle
=====================

[](#kikwikreferablebundle)

This bundle will save referer values in Doctrine 2 entities for symfony 4

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kikwik/referable-bundle
```

Configuration
-------------

[](#configuration)

Create the `config/packages/kikwik_referable.yaml` config file

```
kikwik_referable:
    interfaces:
        CpcReferableInterface:
            cookie_name: 'r'
            query_params: ['r']
            expire: '+30 days'
        UtmReferableInterface:
            cookie_name: 'utm'
            query_params: [ 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content' ]
            expire: '+30 days'
```

Implements one or more interfaces in your classes and use the corresponding trait (Traits can be used only with query\_params from the example above):

```
namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Kikwik\ReferableBundle\Model\CpcReferableInterface;
use Kikwik\ReferableBundle\Model\CpcReferableTrait;
use Kikwik\ReferableBundle\Model\HttpReferableInterface;
use Kikwik\ReferableBundle\Model\HttpReferableTrait;
use Kikwik\ReferableBundle\Model\UtmReferableInterface;
use Kikwik\ReferableBundle\Model\UtmReferableTrait;
use Symfony\Component\Security\Core\User\UserInterface;

/**
 * @ORM\Entity(repositoryClass=UserRepository::class)
 * @ORM\Table(name="`user`")
 */
class User implements UserInterface, HttpReferableInterface, CpcReferableInterface, UtmReferableInterface
{
    use HttpReferableTrait;
    use CpcReferableTrait;
    use UtmReferableTrait;

    //...
}
```

Make migrations and update your database

```
$ php bin/console make:migration
$ php bin/console doctrine:migrations:migrate
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance74

Regular maintenance activity

Popularity8

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

Recently: every ~362 days

Total

8

Last Release

145d ago

Major Versions

v1.0.3 → v2.0.02022-04-04

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v2.0.3PHP &gt;=7.1.3

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kikwik-referable-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kikwik-referable-bundle/health.svg)](https://phpackages.com/packages/kikwik-referable-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M424](/packages/easycorp-easyadmin-bundle)[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.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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