Files
wehub-resource-sync d88fd01084
CI / test (3.10) (push) Failing after 1s
CI / test (3.12) (push) Failing after 0s
CI / skillgen-check (push) Failing after 0s
CI / security-scan (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:09:14 +08:00

23 lines
381 B
PHP

<?php
namespace App\Support;
class Throttle
{
public const int DEFAULT_PER_SECOND = 60;
public const int DEFAULT_PER_DAY = 10000;
}
class RateLimiter
{
public function perSecond(): int
{
return (int) config('throttle.api.per_second', 60);
}
public function perDay(): int
{
return (int) config('throttle.api.per_day', 10000);
}
}