Logo
  • Getting Started
    • Introduction
  • CLI Application
    • index
  • Calendar Library
    • index
    • version 1.x
    • version 1.0
  • Calendar Twig Library
    • index
    • version 1.x
  • Calendar Doctrine Library
    • index
    • version 1.x
  • Retry Library
    • Index
    • version 1.x
  • Rate Limiter Library
    • Index
    • version 1.x
  • Sleep Library
    • Index
    • version 1.x
    • version 1.0
  • Calendar Holidays Library
    • index
    • version 1.x
  • Calendar Holidays Yasumi Library
    • index
    • version 1.x
  • Business Hours Library
    • index
    • version 1.x
  • Symfony Bundle
    • index
    • version 1.x
  1. Home
  2. Documentation
  3. Forum
Install

Aeon\RateLimiter\Algorithm\SlidingWindowAlgorithm

View at GitHub ( 1.x )
Introduction

Class synopis

class final SlidingWindowAlgorithm implements Algorithm
{
public __construct ( Calendar $calendar , int $limit , TimeUnit $timeWindow )
public capacityInitial ( void ) : int
public hit ( string $id , Storage $storage ) : void
public estimate ( string $id , Storage $storage ) : TimeUnit
public capacity ( string $id , Storage $storage ) : int
public resetIn ( string $id , Storage $storage ) : TimeUnit
}
Table of Contents

  • SlidingWindowAlgorithm::__construct
  • SlidingWindowAlgorithm::capacityInitial
  • SlidingWindowAlgorithm::hit
  • SlidingWindowAlgorithm::estimate
  • SlidingWindowAlgorithm::capacity
  • SlidingWindowAlgorithm::resetIn
Rate Limiter - 1.x
  • RateLimiter
  • Hits
  • SlidingWindowAlgorithm
  • LeakyBucketAlgorithm
  • Algorithm
  • PSRCacheStorage
  • MemoryStorage
  • StorageIdNormalizer
  • Hit
  • Storage
  • RuntimeException
  • RateLimitException
Edit this page

Aeon is a set of libraries that makes easier to work with PHP Date & Time in elegant Object Oriented way.

  • aeon-php/calendar
  • aeon-php/calendar-doctrine
  • aeon-php/calendar-holidays
  • aeon-php/calendar-holidays-yasumi
  • aeon-php/cli
  • aeon-php/business-hours
  • aeon-php/process
  • aeon-php/retry
  • aeon-php/rate-limiter
  • aeon-php/calendar-twig