PHPackages                             ozziest/overdose - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. ozziest/overdose

AbandonedArchivedLibrary[Security](/categories/security)

ozziest/overdose
================

Overdose is a guardian which is protects your sistem from request flood.

1.0.0(11y ago)721[3 issues](https://github.com/ozziest/overdose/issues)MITPHP

Since Dec 30Pushed 11y ago2 watchersCompare

[ Source](https://github.com/ozziest/overdose)[ Packagist](https://packagist.org/packages/ozziest/overdose)[ RSS](/packages/ozziest-overdose/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Overdose
========

[](#overdose)

Overdose is a guardian which is protects your system from request floods.

Installation
------------

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "ozziest/overdose": "1.*"
    }
}
```

```
$ composer install
```

Usage
-----

[](#usage)

> > This library depended to `desarrolla2/cache`. You must create cache object and sending to **Overdose** for usage.

```
// Creating new cache object
use Desarrolla2\Cache\Cache;
use Desarrolla2\Cache\Adapter\File;

$cacheDir = '/tmp';
$adapter = new File($cacheDir);
$adapter->setOption('ttl', 3600);
$cache = new Cache($adapter);

// Creating overdose
$overdose = new Ozziest\Overdose\Overdose($cache);
try {
    $overdose->isSecure();
} catch (Ozziest\Overdose\OverdoseException $e) {
    exit($e->getMessage());
}
```

Configuration
-------------

[](#configuration)

You can change runtime options for security.

```
$overdose = new Ozziest\Overdose\Overdose($cache);
$overdose->set([
                'acceptable' => 5,
                'safe'       => 10,
                'max'        => 3,
                'recreation' => 60
            ])
         ->isSecure();
```

- `acceptable`: Acceptable sec for every request interval. If request interval smaller than acceptable, that request is a **overdose.**
- `safe`: Safety sec. for every request interval. If request interval greater than safe, overdose count will reduce.
- `max`: Maximum overdose count for recreation time activation.
- `recreation`: Recreation time. (sec)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Total

2

Last Release

4119d ago

Major Versions

0.1.0 → 1.0.02015-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/2facdc256fbb7fd57510c101c009d6adb6f5cdf07ec7c5a304d30520e78c1357?d=identicon)[ozziest](/maintainers/ozziest)

---

Top Contributors

[![ozziest](https://avatars.githubusercontent.com/u/2325140?v=4)](https://github.com/ozziest "ozziest (13 commits)")

---

Tags

requestphpguardianfloodoverdose

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ozziest-overdose/health.svg)

```
[![Health](https://phpackages.com/badges/ozziest-overdose/health.svg)](https://phpackages.com/packages/ozziest-overdose)
```

###  Alternatives

[stymiee/php-simple-encryption

The PHP Simple Encryption library is designed to simplify the process of encrypting and decrypting data while ensuring best practices are followed. By default is uses a secure encryption algorithm and generates a cryptologically strong initialization vector so developers do not need to becomes experts in encryption to securely store sensitive data.

448.0k](/packages/stymiee-php-simple-encryption)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)[ukrbublik/openssl_x509_crl

Missing OpenSSL function on PHP to create CRL (certificate revocation list) for CA

182.1k](/packages/ukrbublik-openssl-x509-crl)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
