PHPackages                             utopia-php/abuse - 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. [Framework](/categories/framework)
4. /
5. utopia-php/abuse

ActiveLibrary[Framework](/categories/framework)

utopia-php/abuse
================

A simple abuse library to manage application usage limits

1.4.2(2w ago)27281.4k↓22.3%21[1 issues](https://github.com/utopia-php/abuse/issues)[2 PRs](https://github.com/utopia-php/abuse/pulls)1MITPHPPHP &gt;=8.4.1CI failing

Since Apr 28Pushed 1w ago6 watchersCompare

[ Source](https://github.com/utopia-php/abuse)[ Packagist](https://packagist.org/packages/utopia-php/abuse)[ RSS](/packages/utopia-php-abuse/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (19)Versions (98)Used By (1)

Utopia Abuse
============

[](#utopia-abuse)

[![Build Status](https://camo.githubusercontent.com/0b202a59c2c1e0d269e0d7f19a90b18b5f66958f7c445beced34cb936cd1bf9c/68747470733a2f2f7472617669732d63692e6f72672f75746f7069612d7068702f61627573652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/utopia-php/abuse)[![Total Downloads](https://camo.githubusercontent.com/10d4f8d8113fca9ab9e250d0d90f29c8ef2ffd368ac211beb412aa867a5159f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75746f7069612d7068702f61627573652e737667)](https://camo.githubusercontent.com/10d4f8d8113fca9ab9e250d0d90f29c8ef2ffd368ac211beb412aa867a5159f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75746f7069612d7068702f61627573652e737667)[![Discord](https://camo.githubusercontent.com/b130cc39f0cd917f3fc3e9f94c08a8ba302c8b36d32d8914f5494c473a7070e6/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f353634313630373330383435313531323434)](https://appwrite.io/discord)

Utopia framework abuse library is simple and lite library for managing application usage limits. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).

Although this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free, and can be used as standalone with any other PHP project or framework.

Getting Started
---------------

[](#getting-started)

Install using composer:

```
composer require utopia-php/abuse
```

**Time Limit Abuse**

The time limit abuse allow each key (action) to be performed \[X\] times in given time frame. This adapter uses a MySQL / MariaDB to store usage attempts. Before using it create the table schema as documented in this repository (./data/schema.sql)

### Database adapter

[](#database-adapter)

```
