Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kylehudson's avatar

Spark selected plan

Hi,

I am sorry if I am having a noob moment, how do I find out what plan a user or team user is on. I cannot find anything in the docs.

Thanks in advance.

0 likes
3 replies
christophrumpel's avatar

For teams there is a "current_billing_plan" column in the database. I guess this tells you the plan. Null probably means the team is on a free trial. Can you checkt it there?

Cheers

1 like
kylehudson's avatar

Thanks,

I realised that shortly after I posted this. Thanks for your reply.

EventFellows's avatar
Level 16

You better use $user->sparkPlan() as it also handles the free plan setup correctly and the situation if someone is on grace period (after he canceled but when he can still use until end of billing period). Check the docs, it'sin there somewhere, also checks for graceperiod and onTrial etc.

Please or to participate in this conversation.