PHPackages                             htmlwebfan/cognito - 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. htmlwebfan/cognito

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

htmlwebfan/cognito
==================

A package of tools used for revealing elements to humans and but keeping them hidden from bots.

v1.0.1(10y ago)026MITPHPPHP &gt;=5.4.0

Since Jul 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/htmlwebfan/cognito)[ Packagist](https://packagist.org/packages/htmlwebfan/cognito)[ Docs](https://github.com/htmlwebfan/cognito)[ RSS](/packages/htmlwebfan-cognito/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Obfuscator
==========

[](#obfuscator)

[![Latest Version](https://camo.githubusercontent.com/53b733dd93fb37ec8753b79ca0f4053994f4227fc765faf085bafb38d8dd5794/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f68746d6c77656266616e2f636f676e69746f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/htmlwebfan/cognito/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package allows you to use php to generate javascript code that adds email addresses to a page. As a result you do not have to hardcode email addresses into the page. since the address is not in the source code of the page, email scrapers and harvesters are avoided for the most part. The package is not meant to be unbeatable by a bot. It is simply an effort to make it too difficult to be worth the attempt.

Install
-------

[](#install)

Via Composer

```
$ composer require htmlwebfan/cognito
```

Usage
-----

[](#usage)

```
$obfuscator = new EmailObfuscator(new Config);
echo $ob->generateJS();
```

Security
--------

[](#security)

If you discover any security related issues, please email me at  instead of using the issue tracker.

Credits
-------

[](#credits)

- Matthew Way -

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

3963d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a6537049eb4d4888b4eb583593d35a9d4407e84b95c7214c6fea429b1052ebd?d=identicon)[htmlwebfan](/maintainers/htmlwebfan)

---

Top Contributors

[![htmlwebfan](https://avatars.githubusercontent.com/u/8836899?v=4)](https://github.com/htmlwebfan "htmlwebfan (23 commits)")

---

Tags

emailobfuscateobfuscatorwayhidematthtmlwebfanmwayCognito

### Embed Badge

![Health badge](/badges/htmlwebfan-cognito/health.svg)

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

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[zbateson/mail-mime-parser

MIME email message parser

54149.2M79](/packages/zbateson-mail-mime-parser)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48519.5M75](/packages/soundasleep-html2text)[opcodesio/mail-parser

Parse emails without the mailparse extension

226.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

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