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

willbrowning's avatar

Getting current plan billing cycle date for teams

I know that you can do $team->sparkPlan() to get a teams current subscribed plan information.

What I am trying to retrieve is the date of the month that the team is billed on.

So the team's billing cycle.

So for example if they subscribe on 1st January then I believe they should be billed on the 1st of every following month.

How can I get access to the teams billing date so I can see they will be billed on the 1st of each month for example?

I thought about just finding their subscription in the team_subscriptions table and returning the created_at date of the month but not sure if this is this best way.

Thanks

0 likes
0 replies

Please or to participate in this conversation.