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(3mo ago)042MITPHPPHP &gt;=7.1.3

Since Mar 14Pushed 3mo 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 today

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

40

—

FairBetter than 86% of packages

Maintenance81

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

100d 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

[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)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

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

Kimai - Time Tracking

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

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)[open-dxp/opendxp

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

9421.6k60](/packages/open-dxp-opendxp)

PHPackages © 2026

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