PHPackages                             hm/daxiong-rate-limiter - 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. hm/daxiong-rate-limiter

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

hm/daxiong-rate-limiter
=======================

This package provides a custom rate limiter implementation for Yii2 applications.

013PHP

Since Aug 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hm-software56/daxiong-rate-limiter)[ Packagist](https://packagist.org/packages/hm/daxiong-rate-limiter)[ RSS](/packages/hm-daxiong-rate-limiter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hm Rate Limiter for Yii2
========================

[](#hm-rate-limiter-for-yii2)

This package provides a custom rate limiter implementation for Yii2 applications.

1.Installation
--------------

[](#1installation)

You can install this package via Composer:

```
composer require hm/daxiong-rate-limiter:dev-main
```

2. Config add this code in config&gt;main.php inside components
---------------------------------------------------------------

[](#2-config-add-this-code-in-configmainphp--inside-components)

```
'hmrateLimiter' => [
	'class' => DaxiongRateLimiter::class,
	'rateLimit' => 500,    // optional Set a new rate limit (number of requests)
	'timePeriod' => 300,   //optional Set a new time period (in seconds)
],
```

3. Call use In controller function behaviors()
----------------------------------------------

[](#3-call-use-in-controller-function-behaviors)

```
public function behaviors()
{
	return [
		'rateLimiter' => [
			'class' => \yii\filters\RateLimiter::class,
			'user' =>Yii::$app->hmrateLimiter,

		],
		'verbs' => [
			'class' => VerbFilter::class,
			'actions' => [
				'logout' => ['post'],
			],
		],
	];
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb3ae76b4a27d854baec568db68f23edeb1c66108ea746454085ab1ad98a9dd1?d=identicon)[hm-software56](/maintainers/hm-software56)

---

Top Contributors

[![hm-software56](https://avatars.githubusercontent.com/u/10111231?v=4)](https://github.com/hm-software56 "hm-software56 (27 commits)")

### Embed Badge

![Health badge](/badges/hm-daxiong-rate-limiter/health.svg)

```
[![Health](https://phpackages.com/badges/hm-daxiong-rate-limiter/health.svg)](https://phpackages.com/packages/hm-daxiong-rate-limiter)
```

PHPackages © 2026

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