PHPackages                             hirokws/callkeeper - 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. [API Development](/categories/api)
4. /
5. hirokws/callkeeper

ActiveLibrary[API Development](/categories/api)

hirokws/callkeeper
==================

Sequential API call/access rate keeper to be under limited rate.

1.0.3(9y ago)025MIT LicensePHP

Since Dec 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/HiroKws/callkeeper)[ Packagist](https://packagist.org/packages/hirokws/callkeeper)[ RSS](/packages/hirokws-callkeeper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

Callkeeper
==========

[](#callkeeper)

Limit API calling to keep under limited rate per an unit time.

This implement is logic without using timer. So simple and light weight.

単位時間内でAPIの呼び出し回数を制限する。

タイマーを使用しない簡単なロジックで実装しているため、シンプルで軽い。

Laravelのワーカーとして利用するために開発したもの。APIコントロールは１常駐プロセスで行うと簡単に実現できる。

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

use Callkeeper\Callkeeper;

...

/* Initialize */
$keep = new Callkeeper(3, 3000); // 3 times per 3,000 ms (3 seconds)

/* check and wait if needed */
$keep->limit();

$response = WebApiCalling(...);

...

```

Caution
-------

[](#caution)

This is simple keeper, so it is not thread safe. Also not async calling safe.

This is for sequential calling for single system from one process/thread.

License
-------

[](#license)

MIT License.

Copyright reserved by Hirohisa Kawase.

Addition
--------

[](#addition)

Sorry for no test. It is hard to write tests for this type library... :P :D

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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 ~12 days

Total

4

Last Release

3460d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1240652?v=4)[Hirohisa Kawase](/maintainers/HiroKws)[@HiroKws](https://github.com/HiroKws)

---

Top Contributors

[![HiroKws](https://avatars.githubusercontent.com/u/1240652?v=4)](https://github.com/HiroKws "HiroKws (8 commits)")

### Embed Badge

![Health badge](/badges/hirokws-callkeeper/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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