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 useusleep()
making them stable.
See UPGRADE for instructions on how to adjust your code if you are using first version of the package.