PHPackages                             juliocapuano/simple-anti-spam - 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. juliocapuano/simple-anti-spam

ActiveLibrary

juliocapuano/simple-anti-spam
=============================

1.0.0(5y ago)011MITPHPPHP &gt;=5.6

Since Feb 3Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/juliocapuano/SimpleAntiSpam)[ Packagist](https://packagist.org/packages/juliocapuano/simple-anti-spam)[ Docs](https://github.com/juliocapuano/simple-antispam)[ RSS](/packages/juliocapuano-simple-anti-spam/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

SimpleAntiSpam
==============

[](#simpleantispam)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cdce82375306746c015ecb133a0abaa7203576854359c49743b8d135d49ce804/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a756c696f63617075616e6f2f73696d706c652d616e74697370616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juliocapuano/simple-antispam)[![Total Downloads](https://camo.githubusercontent.com/0b62f73dccd023096eec2bd15b07c410fef1b50d14ad8de4e7a4ff81a3b6d9aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a756c696f63617075616e6f2f73696d706c652d616e74697370616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juliocapuano/simple-antispam)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

this Package is focused in a simple field validation

Actually using the open api from [stopforumspam.com](stopforumspam.com)

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
bin/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require juliocapuano/simple-antispam
```

Usage
-----

[](#usage)

```
use juliocapuano\SimpleAntiSpam;

try{

    if(SimpleAntiSpam::isSpamEmail($email))
        throw new \Exception('email is invalid or in black list')

    if(SimpleAntiSpam::isSpamIp($ip))
        throw new \Exception('ip is invalid or in black list')

    if(SimpleAntiSpam::isUrlInText($content))
        throw new \Exception('is span text')

    // sendEmailOrSomeElse();

} catch (Exception $e){

    // manageError($e)

}

```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Julio Capuano](https://github.com/juliocapuano)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

1925d ago

### Community

Maintainers

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

---

Top Contributors

[![juliocapuano](https://avatars.githubusercontent.com/u/968840?v=4)](https://github.com/juliocapuano "juliocapuano (4 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (1 commits)")

---

Tags

juliocapuanosimple-antispam

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/juliocapuano-simple-anti-spam/health.svg)

```
[![Health](https://phpackages.com/badges/juliocapuano-simple-anti-spam/health.svg)](https://phpackages.com/packages/juliocapuano-simple-anti-spam)
```

PHPackages © 2026

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