Major version of yiisoft/rate-limiter package was released.
It introduces new package design proposed by kafkiansky:
LimitPolicyInterfaceis there to easily change the policy of rate limiting i.e. while requests apply limiting to.
StorageInterfaceis there to use custom storage for request counters.
TimerInterfaceallowed 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.