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.
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:
instantgaming.subtag take effect?instantgaming.subtag is omitted?composer.json for production, beyond the PHP 8.2+ local/CI baseline?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:
config/referral-rewriter-tag.php, including optional instantgaming.subtag.phpstan.yml.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.
How can I help you explore Laravel packages today?