PHPackages                             hashworks/phergie-whois-on-join-plugin - 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. hashworks/phergie-whois-on-join-plugin

Abandoned → [hashworks/phergie-user-watch-plugin](/?search=hashworks%2Fphergie-user-watch-plugin)Library[Utility &amp; Helpers](/categories/utility)

hashworks/phergie-whois-on-join-plugin
======================================

Phergie plugin to whois a user on join and handle the result.

v1.0.1(11y ago)032GNU GPL v3.0PHP

Since Feb 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hashworks/PhergieWhoisOnJoin)[ Packagist](https://packagist.org/packages/hashworks/phergie-whois-on-join-plugin)[ RSS](/packages/hashworks-phergie-whois-on-join-plugin/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

PhergieWhoisOnJoin
==================

[](#phergiewhoisonjoin)

[Phergie](http://github.com/phergie/phergie-irc-bot-react/) plugin to whois a user on join and handle the result.

Abandoned!
----------

[](#abandoned)

This plugin is abandoned. Further developement will continue in [PhergieUserWatch](https://github.com/hashworks/PhergieUserWatch).

About
-----

[](#about)

This plugin was originally written to keep the growing amount of chan-whore-monitoring-bots in the Rizon network out of channels. However you can do what you want with the whois result, it'll require a bit of PHP knowledge trough.

Install
-------

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.

```
composer require hashworks/phergie-whois-on-join-plugin

```

See Phergie documentation for more information on [installing and enabling plugins](https://github.com/phergie/phergie-irc-bot-react/wiki/Usage#plugins).

Configuration Examples
----------------------

[](#configuration-examples)

```
// Simple example, give voice to every user who joins the channel.
new \hashworks\Phergie\Plugin\WhoisOnJoin\Plugin(function(\hashworks\Phergie\Plugin\WhoisOnJoin\WhoisResult $whoisResult) {
    $whoisResult->setChannelMode('+v', $whoisResult->getNick());
})
```

```
// Kick everyone who isn't using a secure connection.
new \hashworks\Phergie\Plugin\WhoisOnJoin\Plugin(function(\hashworks\Phergie\Plugin\WhoisOnJoin\WhoisResult $whoisResult) {
    if (!$whoisResult->hasSecureConnection()) {
        $whoisResult->kick('This channel requires a secure connection.');
    }
})
```

```
// This is how I use it. Kickban every user who is in 13 channels or more. Ban based on nick and username, replace numbers with question marks.
new \hashworks\Phergie\Plugin\WhoisOnJoin\Plugin(function(\hashworks\Phergie\Plugin\WhoisOnJoin\WhoisResult $whoisResult) {
    if (count($whoisResult->getChannels()) >= 13) {
        $strReplaceNumbers = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
        $banMask = preg_replace_callback('/^(?.+?)(?[0-9]{0,})!(?.+?)(?[0-9]{0,})@.+$/', function ($matches) {
                        return $matches['nick'] . str_replace($strReplaceNumbers, '?', $matches['nicknumbers']) . '!' .
                                $matches['username'] . str_replace($strReplaceNumbers, '?', $matches['usernumbers']) . '@*';
        }, $whoisResult->getNick() . '!' . $whoisResult->getUsername() . '@' . $whoisResult->getHost());
        if (!empty($banMask)) {
            $whoisResult->setChannelMode('+b', $banMask);
            $whoisResult->privmsgUser('You have been banned automatically from ' . $whoisResult->getEvent()->getSource() . '. Please contact hashworks to fill a complaint.');
        }
        $whoisResult->kick('You have been kicked automatically. Please contact hashworks to fill a complaint.');
    }
})
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Total

4

Last Release

4154d ago

Major Versions

v0.1.0 → v1.0.02015-02-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/020e7faf0f687685e662b4ae27a51e3c3a79713665ede78869816014a7c88b4c?d=identicon)[hashworks](/maintainers/hashworks)

---

Top Contributors

[![hashworks](https://avatars.githubusercontent.com/u/2362091?v=4)](https://github.com/hashworks "hashworks (1 commits)")

---

Tags

pluginhandlerjoinbotwhoisircphergie

### Embed Badge

![Health badge](/badges/hashworks-phergie-whois-on-join-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/hashworks-phergie-whois-on-join-plugin/health.svg)](https://phpackages.com/packages/hashworks-phergie-whois-on-join-plugin)
```

PHPackages © 2026

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