This package is abandoned and no longer maintained. The author suggests using the kilowhat/flarum-ext-affiliation-links package instead.

Transform posted links into affiliation links with ease

Installs: 207

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0


0.1.2 2019-02-18 13:04 UTC

This package is auto-updated.

Last update: 2019-11-01 14:48:20 UTC


MIT license Build status Latest Stable Version Total Downloads Support Us Join our Discord server

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.

The initial version of this extension was sponsored by profesionalreview.com.

If you're only looking to add your Amazon Affiliate Tag to links, check out our Amazon Affiliation extension.


Use Bazaar or install manually:

composer require flagrow/affiliation-links


composer update flagrow/affiliation-links
php flarum migrate
php flarum cache:clear

Support our work

Check out how to support Flagrow extensions at flagrow.io/support-us.


If you discover a security vulnerability within Affiliation Links, please send an email to the Gravure team at security@gravure.io. All security vulnerabilities will be promptly addressed.

Please include as many details as possible. You can use php flarum info to get the PHP, Flarum and extension versions installed.


An extension by Flagrow, a project of Gravure.