PHPackages                             enochzg/yii2-mosquitto - 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. enochzg/yii2-mosquitto

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

enochzg/yii2-mosquitto
======================

yii2-mosquitto

1.0.5(10y ago)21.1k[1 issues](https://github.com/EnochZg/yii2-mosquitto/issues)PHPPHP &gt;=5.3.0

Since Mar 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/EnochZg/yii2-mosquitto)[ Packagist](https://packagist.org/packages/enochzg/yii2-mosquitto)[ RSS](/packages/enochzg-yii2-mosquitto/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (7)Used By (0)

yii2-mosquitto
==============

[](#yii2-mosquitto)

Installation
------------

[](#installation)

The component is based on `php-mosquitto` extension. The download link is `https://github.com/mgdm/Mosquitto-PHP`.

```
composer require enochzg/yii2-mosquitto
```

Usage
-----

[](#usage)

Add target class in your project config:

```
'components' => [
    'mosquitto' => [
        'class' => 'enochzg\mosquitto\Mosquitto',
        'host' => '127.0.0.1',
        'port' => '1883',
        'keepalive' => 60,
        'cafile' => '[your/cert/path]/ca.crt',
        'certfile' => '[your/cert/path]/client.crt',
        'keyfile' => '[your/cert/path]/client.key',
    ],
    //......
]
```

e.g.

```
yii::$app->mosquitto->publish('1', 'message', 2);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

6

Last Release

3756d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9aab7e0e401d25ef0f8b7862aebeb8d0db1dbb756a70b40aaa6c58fde59e8fd?d=identicon)[EnochZg](/maintainers/EnochZg)

---

Tags

helperpushyii2mosquitto

### Embed Badge

![Health badge](/badges/enochzg-yii2-mosquitto/health.svg)

```
[![Health](https://phpackages.com/badges/enochzg-yii2-mosquitto/health.svg)](https://phpackages.com/packages/enochzg-yii2-mosquitto)
```

PHPackages © 2026

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