PHPackages                             kilowhat/flarum-ext-affiliation-links - 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. kilowhat/flarum-ext-affiliation-links

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

kilowhat/flarum-ext-affiliation-links
=====================================

Transform posted links into affiliation links with ease

0.2.0(6y ago)3153[15 PRs](https://github.com/kilowhat/flarum-ext-affiliation-links/pulls)MITPHP

Since May 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kilowhat/flarum-ext-affiliation-links)[ Packagist](https://packagist.org/packages/kilowhat/flarum-ext-affiliation-links)[ RSS](/packages/kilowhat-flarum-ext-affiliation-links/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (20)Used By (0)

Multi-Purpose Affiliation Links Generator for Flarum
====================================================

[](#multi-purpose-affiliation-links-generator-for-flarum)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/kilowhat/flarum-ext-affiliation-links/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/58f810c0172487f869d91683f6b3cb2204d2adb9fdb3cb59df7d9ce161945a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b696c6f776861742f666c6172756d2d6578742d616666696c696174696f6e2d6c696e6b732e737667)](https://packagist.org/packages/kilowhat/flarum-ext-affiliation-links)

This extension allows you to automatically turn links into custom affiliate or redirect links.

You can define a list of rules that once matched will turn the url into another value. You can then inject the original url as part of that new url.

For example you can create a rule so that every url with domain `niceshop.tld` gets rewritten as `https://referaldomain.tld?redirect={url}`. This will turn links like `https://niceshop.tld/amazing-product` into `https://referaldomain.tld/?redirect=https%3A%2F%2Fniceshop.tld%2Famazing-product`.

You can create more advanced rules with regular expression matching and capture groups.

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

[](#installation)

This extension can be installed on Flarum beta 10.x **only**.

```
composer require kilowhat/flarum-ext-affiliation-links
```

This extension replaces flagrow/affiliation-links and will automatically import its data.

A KILOWHAT extension
--------------------

[](#a-kilowhat-extension)

This extension was written by Clark Winkelmann as part of a client contract and released under the MIT license in the hope that the code will be useful to others.

This extension is published on Packagist and you are welcome to install it on your own forum, however **no free support is offered**.

Please [contact me](https://clarkwinkelmann.com/flarum) if you are interested in contracting me to add features or update this extension.

Links
-----

[](#links)

- [Source on GitHub](https://github.com/kilowhat/flarum-ext-affiliation-links)
- [Package on Packagist](https://packagist.org/packages/kilowhat/flarum-ext-affiliation-links)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

2385d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

---

Top Contributors

[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (5 commits)")

---

Tags

extensionflarumlinksaffiliation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kilowhat-flarum-ext-affiliation-links/health.svg)

```
[![Health](https://phpackages.com/badges/kilowhat-flarum-ext-affiliation-links/health.svg)](https://phpackages.com/packages/kilowhat-flarum-ext-affiliation-links)
```

###  Alternatives

[fof/mason

Add custom fields to discussions

206.0k](/packages/fof-mason)

PHPackages © 2026

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