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\Enums\Post;
use Carbon\CarbonImmutable;
use Carbon\CarbonInterface;
enum RecurrenceFrequency: string
{
case Day = 'day';
case Week = 'week';
case Month = 'month';
case Year = 'year';
public function advance(CarbonInterface $from, int $steps): CarbonImmutable
{
$from = $from->toImmutable();
return match ($this) {
self::Day => $from->addDays($steps),
self::Week => $from->addWeeks($steps),
self::Month => $from->addMonthsNoOverflow($steps),
self::Year => $from->addYearsNoOverflow($steps),
};
}
}