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 2mo ago

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 54% 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

3413d 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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