PHPackages                             famdirksen/laravel-utm-urls - 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. famdirksen/laravel-utm-urls

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

famdirksen/laravel-utm-urls
===========================

This package will add utm attributes to all urls

0.4.1(5y ago)5152MITPHPPHP &gt;=5.6

Since May 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Famdirksen/Laravel-UTM-URLs)[ Packagist](https://packagist.org/packages/famdirksen/laravel-utm-urls)[ Docs](https://github.com/Famdirksen/Laravel-UTM-URLs)[ RSS](/packages/famdirksen-laravel-utm-urls/feed)WikiDiscussions master Synced yesterday

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

Laravel UTM Urls
================

[](#laravel-utm-urls)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ae293c4355415bee251ab39596f7b01ddf855929e7c37fbbd4a038857a5a2ba5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f46616d6469726b73656e2f4c61726176656c2d55544d2d55524c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Famdirksen/Laravel-UTM-URLs)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9a808369f11f403e5d385df3ea71bd876419431d786f9916ce50377bb5055255/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f46616d6469726b73656e2f4c61726176656c2d55544d2d55524c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Famdirksen/Laravel-UTM-URLs)[![Coverage Status](https://camo.githubusercontent.com/39fbe979539c80a8172625adf6e544623a36edd8804c2fe313839fc055aefad4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f46616d6469726b73656e2f4c61726176656c2d55544d2d55524c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Famdirksen/Laravel-UTM-URLs/code-structure)[![Quality Score](https://camo.githubusercontent.com/3c6ff905806446351b410402be000858aacdbb0787029d97a9aa6f1382a004da/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f46616d6469726b73656e2f4c61726176656c2d55544d2d55524c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Famdirksen/Laravel-UTM-URLs)[![Total Downloads](https://camo.githubusercontent.com/7768ffc6d5ef7929b2b0795cef8c1b7eacf89e530c4e2739610cf22f05c8bc01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f46616d6469726b73656e2f4c61726176656c2d55544d2d55524c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Famdirksen/Laravel-UTM-URLs)

Install
-------

[](#install)

Via Composer

```
$ composer require famdirksen/laravel-utm-urls
```

Usage
-----

[](#usage)

Add the `\Famdirksen\LaravelUTMUrls\Middleware\SetUTMUrls::class` to your `app/Http/Kernel.php`. Thisway all the url's on your site will have the UTM attributes from the config file (`utm-urls.php`) added.

To disable the UTM attributes appended to a url on specific routes, you can add the follow middleware to the route or group: `\Famdirksen\LaravelUTMUrls\Middleware\DisableUTMUrls::class`. This will set the header `x-do-not-append-campagne` so it won't append the UTM attributes.

You can publish the config file with:

`php artisan vendor:publish --provider="Famdirksen\LaravelUTMUrls\LaravelUTMUrlsServiceProvider"`

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Robin Dirksen](https://github.com/robindirksen1) ([personal site](https://robindirksen.nl))
- [Famdirksen](https://famdirksen.nl)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~210 days

Total

9

Last Release

2042d ago

PHP version history (3 changes)0.1PHP ~5.6|~7.0

0.1.2PHP ~5.6|~7.0|~7.1|~7.2

0.1.3PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b31fe44f30656571aa5542650255de74327846dcac0bcff3ab1ddda5cf57727?d=identicon)[robindirksen1](/maintainers/robindirksen1)

---

Top Contributors

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

---

Tags

famdirksenLaravelUTMUrls

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/famdirksen-laravel-utm-urls/health.svg)

```
[![Health](https://phpackages.com/badges/famdirksen-laravel-utm-urls/health.svg)](https://phpackages.com/packages/famdirksen-laravel-utm-urls)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

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