PHPackages                             webnuvola/antispambot - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. webnuvola/antispambot

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

webnuvola/antispambot
=====================

Stand-alone antispambot function from WordPress

v1.5.0(2y ago)03.6k↓50%GPL-2.0-or-laterPHPPHP ^8.1

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Webnuvola/antispambot)[ Packagist](https://packagist.org/packages/webnuvola/antispambot)[ RSS](/packages/webnuvola-antispambot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

Antispambot
===========

[](#antispambot)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5a6aaa5359d0340aa93961a074cfe0c1aea61be809ba507d20de6e2c87e4b72b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626e75766f6c612f616e74697370616d626f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webnuvola/antispambot)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e8c9bcd759eb56e85e078d3aea314b8b1917ec0c1d817c24cb36818c8b02bc73/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7765626e75766f6c612f616e74697370616d626f742f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/Webnuvola/antispambot/actions?query=branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/889081f64921474930a7c203d58c10ba7d68e76f6440ef77f9a293eb4d91b52f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626e75766f6c612f616e74697370616d626f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webnuvola/antispambot)

This package allows you to use the `antispambot` function outside of WordPress.

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

[](#installation)

You can install the package via composer:

```
composer require webnuvola/antispambot
```

Usage
-----

[](#usage)

```
echo antispambot('demo@example.com');
// Example output: de&#109;&#111;&#64;e&#120;ample&#46;&#99;om
// Example output decoded: demo@example.com

echo antispambot('demo@example.com', 'Contact us');
// Example output: Contact us

echo antispambot('demo@example.com', 'Contact us', ['class' => 'text-white', 'target' => '_blank']);
// Example output: Contact us

echo \Webnuvola\Antispambot\Antispambot::antispambot('demo@example.com');
// Example output: &#100;&#101;&#109;&#111;&#64;e&#120;a&#109;pl&#101;&#46;co&#109;
```

Use `antispambot_html` function to return an instance of `Illuminate\Support\HtmlString` to use with Laravel framework.

Documentation
-------------

[](#documentation)

`antispambot` on [WordPress Developer Resources](https://developer.wordpress.org/reference/functions/antispambot/).

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [WordPress](https://wordpress.org/)
- [Fabio Cagliero](https://github.com/fab120)

License
-------

[](#license)

This software is release under GPL v2. Please see [LICENSE](LICENSE) file for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

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

Recently: every ~417 days

Total

6

Last Release

800d ago

PHP version history (4 changes)v1.0.0PHP &gt;=7.3

v1.2.0PHP ^7.4|^8.0

v1.3.0PHP ^7.4 || ^8.0

v1.5.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![fab120](https://avatars.githubusercontent.com/u/293368?v=4)](https://github.com/fab120 "fab120 (18 commits)")

---

Tags

antispamantispambotemailobfuscationphpspamwordpresswordpressemailspamantispamobfuscationantispambot

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/webnuvola-antispambot/health.svg)

```
[![Health](https://phpackages.com/badges/webnuvola-antispambot/health.svg)](https://phpackages.com/packages/webnuvola-antispambot)
```

###  Alternatives

[itinerisltd/wp-phpmailer

WP PHPMailer provides a clean and simple way to configure WordPress-bundled PHPMailer library, allowing you to quickly get started sending mail through a local or cloud based service of your choice.

6231.6k](/packages/itinerisltd-wp-phpmailer)[academe/laraveldkim

A Laravel plugin to sign all outgoing emails using DKIM from within the application.

1643.8k](/packages/academe-laraveldkim)

PHPackages © 2026

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