PHPackages                             davedevelopment/stiphle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. davedevelopment/stiphle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

davedevelopment/stiphle
=======================

Simple rate limiting/throttling for php

0.9.4(3y ago)2538.1M↓37.4%37[5 issues](https://github.com/davedevelopment/stiphle/issues)[1 PRs](https://github.com/davedevelopment/stiphle/pulls)9MITPHPPHP ^5.6.0|^7.0|^8.0CI failing

Since Jul 3Pushed 3y ago12 watchersCompare

[ Source](https://github.com/davedevelopment/stiphle)[ Packagist](https://packagist.org/packages/davedevelopment/stiphle)[ Docs](http://github.com/davedevelopment/stiphle)[ RSS](/packages/davedevelopment-stiphle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (4)Versions (7)Used By (9)

Stiphle
=======

[](#stiphle)

Install via Composer
--------------------

[](#install-via-composer)

```
composer require davedevelopment/stiphle

```

What is it?
-----------

[](#what-is-it)

Stiphle is a little library to try and provide an easy way of throttling/rate limit requests, for those without fancy hardware etc.

How does it work?
-----------------

[](#how-does-it-work)

You create a throttle, and ask it how long you should wait. For example, given that $identifier is some means of identifying whatever it is you're throttling, and you want to throttle it to 5 requests per second:

```
