PHPackages                             medelse/utm-cookie-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. medelse/utm-cookie-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

medelse/utm-cookie-bundle
=========================

The UtmCookieBundle is a Symfony Bundle to save utm parameters from url into cookie when exists. Than cookie (utm) can be used later without parsing google or any other cookies.

1.0.0(5y ago)015.8k4[1 PRs](https://github.com/Medelse/utm-cookie-bundle/pulls)MITPHPPHP &gt;=7.0CI failing

Since Jun 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Medelse/utm-cookie-bundle)[ Packagist](https://packagist.org/packages/medelse/utm-cookie-bundle)[ RSS](/packages/medelse-utm-cookie-bundle/feed)WikiDiscussions master Synced 3w ago

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

MedelseUtmCookieBundle
======================

[](#medelseutmcookiebundle)

The **MedelseUtmCookieBundle** is a Symfony Bundle to save utm parameters from url into cookie when exists. Than cookie (utm) can be used later without parsing google or any other cookies.

Features include:

- Compatible Symfony version 3 &amp; 4

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

[](#installation)

### Through Composer:

[](#through-composer)

Install the bundle:

```
$ composer require medelse/utm-cookie-bundle

```

### Register the bundle in app/AppKernel.php (Symfony V3):

[](#register-the-bundle-in-appappkernelphp-symfony-v3)

```
// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new Medelse\UtmCookieBundle\MedelseUtmCookieBundle(),
    );
}
```

### Register the bundle in app/AppKernel.php (Symfony V4):

[](#register-the-bundle-in-appappkernelphp-symfony-v4)

```
// config/bundles.php

return [
    // ...
    Medelse\UtmCookieBundle\MedelseUtmCookieBundle::class => ['all' => true],
];
```

### Parameters :

[](#parameters-)

```
medelse_utm_cookie:
    name: 'utm' #The Name of cookie (default value "utm")
    lifetime: 604800 #The lifetime of cookie in seconds (default 604800 => 7 days)
    path: '/' #The path on the server in which the cookie will be available on (default '/')
    domain: '' #The (sub)domain that the cookie is available to (default '' so use current domain)
    overwrite: true|false #If overwrite all utm values when even one is set in get (default true)
    secure: true|false #Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client (default false)
    httponly: true|false #When TRUE the cookie will be made accessible only through the HTTP protocol (default false)
    auto_init: true|false #If true, run init and create cookie automatically. If false you have to call init manually (default true)
```

Usage
-----

[](#usage)

### Public service

[](#public-service)

The service name available is `medelse_utm_cookie.utm_cookie`

### Basic Usage

[](#basic-usage)

```
$this->get('medelse_utm_cookie.utm_cookie')->init(); // just init - read utm params and cookie and save new values. (optionnal if auto_init config is TRUE or automatically called when call get() method)
$this->get('medelse_utm_cookie.utm_cookie')->get(); // get all utm cookies as array
$this->get('medelse_utm_cookie.utm_cookie')->get('utm_source'); // get utm_source
$this->get('medelse_utm_cookie.utm_cookie')->get('source'); // get utm_source
```

License
-------

[](#license)

This bundle is under the MIT license.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

1845d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/630794?v=4)[Cenatiempo Yannick](/maintainers/Bilbous)[@Bilbous](https://github.com/Bilbous)

---

Top Contributors

[![thomas-medelse](https://avatars.githubusercontent.com/u/67781232?v=4)](https://github.com/thomas-medelse "thomas-medelse (4 commits)")[![Bilbous](https://avatars.githubusercontent.com/u/630794?v=4)](https://github.com/Bilbous "Bilbous (1 commits)")

---

Tags

cookieUTMmedelse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/medelse-utm-cookie-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/medelse-utm-cookie-bundle/health.svg)](https://phpackages.com/packages/medelse-utm-cookie-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.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

32642.2k21](/packages/symfony-ai-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26411.5k8](/packages/sylius-taxonomy-bundle)[sylius/inventory-bundle

Flexible inventory management for Symfony applications.

19189.5k5](/packages/sylius-inventory-bundle)[xsuchy09/utm-cookie

Utm-Cookie saves utm parameters from url into cookie with defined lifetime (default 7 days). Than cookie (utm) can be used later without parsing google or any other cookies.

1557.8k3](/packages/xsuchy09-utm-cookie)[yceruto/formflow-bundle

Create and manage multistep forms

2414.8k](/packages/yceruto-formflow-bundle)

PHPackages © 2026

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