bkfdev/laravel-referrals
A Laravel package for adding referral programs to your app: generate referral codes and shareable links, track invited sign-ups, attribute conversions, and reward referrers. A simple way to build invite-based growth into any Laravel project.
short_link_id on referral links makes shortened, share-friendly URLs a first-class part of the referral model. That directly unblocks product decisions around which channels to invest in — SMS, paid social, influencer/creator placements, in-app share sheets — where long query-string URLs get truncated, look untrustworthy, or break in bios and character-limited fields.short_link_id implies multiple distinct links per referrer or per campaign, supporting decisions like per-channel links, time-boxed promotions, and A/B tests on referral messaging without new engineering work each time.Consider it when:
Look elsewhere when:
Adoption caveats worth verifying before committing: the semantics and lifecycle of short_link_id (nullable? foreign key to an internal short-link table or an external service?), behavior for existing referral links created before v1.1.1, and whether short-link resolution preserves the attribution parameters your analytics depend on. This is an additive, non-breaking change by the look of it, but confirm the backfill story and redirect behavior in a staging environment before rollout.
To executives: This package gives us referral links as a product primitive instead of a bespoke build. The v1.1.1 release adds short-link support to referral links, which is the difference between a link that works in an email and a link that works in an Instagram bio, a text message, or a creator's post — the channels where referral programs actually spread. It's additive and low-risk, keeps referral data in our own database, and lets us ship a growth experiment in days rather than a quarter. The trade-off is scope: it is not an affiliate payout system, so if we later move to cash commissions or multi-tier partners we should expect to layer on or migrate.
To engineering: Eloquent-native referral link management with migrations and config, integrating with our existing user model. The 1.1.1 change attaches a short_link_id to referral links — additive, no breaking changes expected, but it introduces a dependency between referral links and whatever issues short links, so confirm foreign-key/nullability handling and backfill for pre-existing rows. Short-link resolution must preserve our attribution parameters end to end; that redirect path is the one place this can silently break measurement. Recommend a small spike to validate redirect behavior and analytics continuity before we build campaign features on top of it.
How can I help you explore Laravel packages today?