the-3labs-team/laravel-referral-rewriter-tag
A Laravel package for rewriting referral tags on incoming requests, helping standardize referral attribution and preserve campaign tracking across redirects. Lightweight, configurable, and easy to drop into existing Laravel applications.
config/referral-rewriter-tag.php instead of hard-coded URLs scattered across Blade templates and content. That turns "change the referral tag for the Instant Gaming campaign" from an engineering ticket into a config change — a direct lever on revenue attribution and campaign reporting.instantgaming.subtag key lets marketing append a subtag to Instant Gaming links without a deploy. This supports decisions like: which placements/channels get distinct subtags, whether to A/B affiliate placements, and how granular outbound-link reporting needs to be.Adopt when:
Look elsewhere when:
phpstan.yml was removed; static analysis now runs inside run-tests.yml. If you forked those workflows, port the change.Upgrade notes for v1.0.6: maintenance-only, no public API breakage. composer update, merge the new optional instantgaming.subtag key into your published config, and bump local/CI PHP to 8.2+.
For executives: This is a small, focused package that keeps our outbound affiliate links correctly tagged, so partner revenue is credited to us rather than lost to untagged links. The v1.0.6 release is a maintenance release — no breaking changes — and its most useful addition is a configurable Instant Gaming subtag, which lets marketing run distinct tracked campaigns without engineering work. It also brings the project onto the Laravel 12 / PHP 8.2 baseline, so it won't become an upgrade liability. Risk is low and contained: it is a link-rewriting utility, not a system of record, and easily replaced. Recommendation: proceed on the Laravel 12 timeline, keep it config-driven, and monitor upstream activity given the small maintainer base.
For engineering: v1.0.6 is a stabilization release. Runtime behavior is unchanged; the only functional delta is an optional instantgaming.subtag config key with fallback defaults now covered by tests. Dev/CI requirements move to PHP 8.2+, with the toolchain aligned to Testbench 10, Pest 3, Larastan 3, PHPStan 2, Rector 2, and Collision 8. The fragile multi-OS/Code Climate setup was replaced by a single pull_request gate (Composer validation, tests, static analysis), a real package boot smoke test was added, and Dependabot now covers Composer with tightened auto-merge for non-major bumps. Upgrade path: composer update, publish/merge the config key, and note that standalone phpstan.yml is gone — static analysis lives in run-tests.yml if you mirrored those workflows. Small, auditable codebase; low integration risk.
How can I help you explore Laravel packages today?