2021-08-15 990次浏览

Major version of yiisoft/rate-limiter package was released.

It introduces new package design proposed by kafkiansky:

LimitPolicyInterface is there to easily change the policy of rate limiting i.e. while requests apply limiting to. StorageInterface is there to use custom storage for request counters. TimerInterface allowed us to rewrite tests not to use usleep() making them stable.

See UPGRADE for instructions on how to adjust your code if you are using first version of the package.