Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Referral Rewriter Tag Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: laravel-referral-rewriter-tag appears to be a lightweight, config-driven Laravel package for referral/tag rewriting, with v1.0.6 focused on maintenance rather than new runtime capability. The only advertised config change is an optional instantgaming.subtag key, so architectural impact is low and localized to configuration and URL/tag generation behavior.

Integration feasibility: Feasible for a Laravel 12 application using Composer and standard package discovery. Integration likely requires installing the package, publishing/merging config/referral-rewriter-tag.php, setting the Instant Gaming subtag, and validating rewritten referral output in staging. The release explicitly requires PHP 8.2+ for local development and CI, and refreshes dev dependencies with composer update.

Technical risk: Low for consuming applications, because v1.0.6 is a stabilization release and the config addition is optional/backward-compatible. Medium risk for teams that maintain forks or depend on the package’s repository workflows: standalone phpstan.yml was removed and static analysis now runs inside run-tests.yml. Toolchain upgrades to Testbench 10, Pest 3, Larastan 3, PHPStan 2, Rector 2, and Collision 8 are primarily development/CI concerns but may create upgrade noise. The package remains niche, so long-term maintainer coverage and the actual production behavior of the referral rewriting should be verified rather than assumed.

Key questions:

  • Does the package rewrite links server-side, inject tags client-side, or both, and where does instantgaming.subtag take effect?
  • Are the Instant Gaming config fallback defaults safe when instantgaming.subtag is omitted?
  • What Laravel/PHP version constraints are declared in composer.json for production, beyond the PHP 8.2+ local/CI baseline?
  • Does the package auto-register its service provider, and does it require config publishing or manual merge?
  • Are there outbound network calls, redirects, cache interactions, or URL-generation side effects that affect performance or failure behavior?
  • Is the package actively maintained beyond Dependabot automation, and who owns support for Instant Gaming tag changes?

Integration Approach

Stack fit: Good fit for a Laravel 12 application on PHP 8.2+ that needs configurable referral tag rewriting, particularly for Instant Gaming attribution. The package follows standard Laravel package conventions, so it should fit existing Composer, config-cache, and service-provider patterns.

Migration path: For a fresh install, add the Composer dependency, publish/merge the config file, set instantgaming.subtag if required, clear config cache, and verify referral output. From v1.0.5, the upgrade appears low-risk: refresh dependencies with composer update, add the optional config key, and validate existing referral behavior. No database migration is indicated. Teams maintaining repository workflows should update CI expectations because phpstan.yml was removed and analysis now runs in run-tests.yml.

Compatibility: The maintenance baseline targets Laravel 12 through Orchestra Testbench 10. The testing and analysis stack now uses Pest 3, Larastan 3, PHPStan 2, and Rector 2; these are mostly dev/CI compatibility concerns. Confirm that the application’s PHP runtime, Laravel version, and Composer constraints satisfy the package’s declared requirements before rollout.

Sequencing:

  1. Confirm PHP 8.2+ and Laravel 12 compatibility in the target application.
  2. Install/upgrade the package via Composer and refresh dependencies.
  3. Publish or merge config/referral-rewriter-tag.php, including optional instantgaming.subtag.
  4. Clear and rebuild config cache in the target environment.
  5. Run application tests plus a package boot smoke test in staging.
  6. Validate Instant Gaming referral output and fallback behavior with and without the subtag.
  7. Update repository CI if it referenced the removed phpstan.yml.
  8. Deploy to production with a rollback plan limited to dependency/config rollback.

Operational Impact

Maintenance: Low routine maintenance for consumers. v1.0.6 is a maintenance/stabilization release with Dependabot coverage and auto-merge handling for non-major updates. The main ongoing tasks are keeping Laravel/PHP dependencies aligned, reviewing major toolchain bumps, and confirming Instant Gaming program/tag changes.

Support: Support is likely GitHub/community-driven rather than vendor-SLA-backed. Assign an internal owner for the package and the Instant Gaming referral configuration. Because the package is niche, document the integration and escalation path to avoid single-person dependency.

Scaling: The package likely adds negligible runtime overhead if it only performs config-driven tag/link rewriting. Scaling risk is low unless the implementation performs outbound calls, redirects, or uncached per-request work. Validate behavior under config caching and any URL-generation hot paths.

Failure modes: Missing config may fall back to defaults; v1.0.6 adds tests around Instant Gaming config fallback defaults, which reduces this risk. Other failure modes include malformed referral links from invalid subtag values, stale config cache after deployment, package/service-provider misregistration, PHP/Laravel constraint mismatches, and external Instant Gaming attribution changes. For maintainers, CI failure can occur if workflows still expect phpstan.yml.

Ramp-up: Low for a Laravel developer familiar with Composer packages and config publishing; expect a short install-and-verify cycle. TPM/product ramp-up should focus on referral attribution semantics, fallback behavior, and ownership of Instant Gaming configuration rather than framework mechanics.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel