Member Count

Klub exposes a stats report you can show in the Panel and hooks to warn you when you approach license limits. Use this page for license monitoring.

Panel stats report

sections:
  stats:
    type: stats
    reports:
      - site.klub.stats

The report reads the current member count and license limit after the first production license check.

License warning hook

<?php

return [
  'hooks' => [
    'klub.license.checked' => function ($members, $maxMembers) {
      if ($maxMembers > 0 && ($members / $maxMembers) > 0.9) {
        klub()->notify('my_hook.license_upgrade', expire: 60 * 24);
      }
    },
    'my_hook.license_upgrade' => function () {
      // send yourself an email or Slack/Discord message
    },
  ],
];

When the license check fails, Klub triggers klub.license.failed and throws an exception.

Kirby Klub is not affiliated with the developers of Kirby CMS. We are merely standing on the shoulder of giants.
© 2026 Bruno Meilick All rights reserved.