Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<?php
declare(strict_types=1);
namespace App\Support\Billing;
use Stripe\Subscription as StripeSubscription;
final class SubscriptionPlanSync
{
public static function allows(mixed $status): bool
{
return in_array($status, [
StripeSubscription::STATUS_ACTIVE,
StripeSubscription::STATUS_TRIALING,
], true);
}
/**
* These statuses mean the paid subscription is gone. `past_due` and
* `incomplete` are left alone: dunning still has app access, and 3DS
* must not wipe a plan the account already earned.
*/
public static function clears(mixed $status): bool
{
return in_array($status, [
StripeSubscription::STATUS_UNPAID,
StripeSubscription::STATUS_CANCELED,
StripeSubscription::STATUS_INCOMPLETE_EXPIRED,
], true);
}
}