Skip to main content
Version: 2.1

Enable plans

Make user a limitable user

Implement the LimitedUserInterface


use Parthenon\Plan\LimitedUserInterface;

class User extends \Parthenon\User\Entity\User implements LimitedUserInterface
{
// ...

public function getPlanName(): string
{
return $this->getSubscription()?->getPlanName() ?? '';
}
}

Config

Add the plans config

parthenon:
plan:
enabled: true
plan:
Basic:
limit:
team_invite:
limit: 1
description: "Number of users"
Standard:
limit:
team_invite:
limit: 5
description: "Number of users"