Skip to content

PhoenixKit 1.2.4: Referral codes and a configurable URL prefix

PhoenixKit 1.2.4 adds a referral codes system and a modules page in the admin, and lets an app move PhoenixKit away from /phoenix_kit.

Referral codes

The new modules page has a Referral Codes System card. When it is on, the registration form asks for a referral code, and a switch makes the code required or optional. Codes are managed at /admin/referral-codes: each has a Maximum Uses, an optional Expiration Date, an active switch and an optional Beneficiary User, picked with a user search. Generated codes avoid characters that are easy to confuse. The module card also caps the uses per code and the number of codes per user. In the admin menu, the codes sit under a new Modules group.

URL prefix and installer

PhoenixKit’s routes now mount under url_prefix from its config, "/phoenix_kit" by default. The installer also sets up Finch when your mailer uses an HTTP-based adapter such as Amazon SES.

Upgrading

Run mix phoenix_kit.update to apply migrations V04 to V06, which add the referral code tables and a module column to settings.

Full release notes: PhoenixKit 1.2.4

1.2.4 · 2 September 2025

Fixed

  • Layout Integration - Improved parent app layout support
  • Asset Loading - Better handling of CSS/JS assets

PhoenixKit 1.2.4. Install or update: {:phoenix_kit, "~> 1.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.