PHPackages                             martyn911/yii2-adblock-detector - 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. martyn911/yii2-adblock-detector

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

martyn911/yii2-adblock-detector
===============================

Yii2 AdBlock Detector Extension

1.1(8y ago)01.4kMITJavaScriptPHP &gt;= 5.4

Since Sep 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Martyn911/yii2-adblock-detector)[ Packagist](https://packagist.org/packages/martyn911/yii2-adblock-detector)[ RSS](/packages/martyn911-yii2-adblock-detector/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

yii2-adblock-detector
=====================

[](#yii2-adblock-detector)

Yii2 AdBlock Detector

Расширение для определения включен ли AdBlock у посетителя.

Install
-------

[](#install)

composer require --prefer-dist martyn911/yii2-adblock-detector

Example usage :
---------------

[](#example-usage-)

```
use martyn911\adblock\detector\Detector;
```

```
echo Detector::widget();
```

### Options:

[](#options)

```
echo Detector::widget([
    'timeout' => 200, //Число миллисекунд, в конце которых считается, что AdBlock не включен
    'callback_detected' => 'adBlockDetected', //js функция, которая выполняется если adblock включен
    'callback_not_detected' => 'adBlockNotDetected', //js функция, которая выполняется если adblock не включен. Можно отключить - false
]);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3197d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9728008?v=4)[Serhii](/maintainers/Martyn911)[@Martyn911](https://github.com/Martyn911)

---

Top Contributors

[![Martyn911](https://avatars.githubusercontent.com/u/9728008?v=4)](https://github.com/Martyn911 "Martyn911 (3 commits)")

---

Tags

yii2widgetdetectadblock

### Embed Badge

![Health badge](/badges/martyn911-yii2-adblock-detector/health.svg)

```
[![Health](https://phpackages.com/badges/martyn911-yii2-adblock-detector/health.svg)](https://phpackages.com/packages/martyn911-yii2-adblock-detector)
```

###  Alternatives

[alexandernst/yii2-device-detect

Yii2 extension for Mobile-Detect library

135865.7k3](/packages/alexandernst-yii2-device-detect)[softark/yii2-dual-listbox

Bootstrap Dual Listbox Widget for Yii 2

20149.1k11](/packages/softark-yii2-dual-listbox)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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