PHPackages                             repat/limonte-spam-link-analyser - 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. repat/limonte-spam-link-analyser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

repat/limonte-spam-link-analyser
================================

Check probability of link is spam

0.2(6y ago)1696MITPHP

Since Sep 18Pushed 6y agoCompare

[ Source](https://github.com/repat/limonte-spam-link-analyser)[ Packagist](https://packagist.org/packages/repat/limonte-spam-link-analyser)[ Docs](https://github.com/repat/limonte-spam-link-analyser)[ RSS](/packages/repat-limonte-spam-link-analyser/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

PHP library to check if link is spam
====================================

[](#php-library-to-check-if-link-is-spam)

[![Build Status](https://camo.githubusercontent.com/853ff6441dfc3508758b47c0c97bb0a88207a8848faf233f50bdfc54e186b1fe/68747470733a2f2f7472617669732d63692e6f72672f72657061742f6c696d6f6e74652d7370616d2d6c696e6b2d616e616c797365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/repat/limonte-spam-link-analyser)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/927843657ca9c5529fd39b8e4c0b511e653896f97004041a67592f814daf273b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72657061742f6c696d6f6e74652d7370616d2d6c696e6b2d616e616c797365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/repat/limonte-spam-link-analyser/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c97656de85fd65d0c367457e7ed6116a567cbd43c791ea73aa22fd0e7399ad27/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72657061742f6c696d6f6e74652d7370616d2d6c696e6b2d616e616c797365722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/repat/limonte-spam-link-analyser/?branch=master)

Update:
-------

[](#update)

The underlying `paquettg/php-html-parser` in `^1.7` wasn't PHP 7.3 ready so I forked the project, updated the dependency and reuploaded it.

Installation:
-------------

[](#installation)

`composer require repat/limonte-spam-link-analyser`

Usage:
------

[](#usage)

```
$spamLinkAnalyser = new Limonte\SpamLinkAnalyser;

$status = $spamLinkAnalyser->check($url);

if ($status === SpamLinkAnalyser::OK) {
    // link is OK
} else {
    // link is suspicious
}

if ($status === SpamLinkAnalyser::GOOGLE_BOT_DIFFERENT_REDIRECT) {
    // link has different redirect locations for browser and for Google Bot
}

if ($status === SpamLinkAnalyser::TOO_MUCH_REDIRECTS) {
    // link has 3 or more redirects
}
```

Related libraries:
------------------

[](#related-libraries)

- Google Safebrowsing PHP library: [limonte/google-safebrowsing](https://github.com/limonte/google-safebrowsing)
- McAfee SiteAdvisor PHP library: [limonte/mcafee-siteadvisor](https://github.com/limonte/mcafee-siteadvisor)
- PHP parser for Adblock Plus filters: [limonte/php-adblock-parser](https://github.com/limonte/php-adblock-parser)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~537 days

Total

3

Last Release

2451d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/405dab243007488e7e7851422e5864a9312aee36058d60f1e6d623232c4d3131?d=identicon)[repat](/maintainers/repat)

---

Top Contributors

[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (2 commits)")[![limonte](https://avatars.githubusercontent.com/u/6059356?v=4)](https://github.com/limonte "limonte (1 commits)")[![zhukovra](https://avatars.githubusercontent.com/u/289431?v=4)](https://github.com/zhukovra "zhukovra (1 commits)")

---

Tags

link-checkerspam checkermalware detectorphishing checkerscam detectorspam-linkspam-link-checker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/repat-limonte-spam-link-analyser/health.svg)

```
[![Health](https://phpackages.com/badges/repat-limonte-spam-link-analyser/health.svg)](https://phpackages.com/packages/repat-limonte-spam-link-analyser)
```

###  Alternatives

[lochmueller/seocli

SEO CLI Tool

1113.4k](/packages/lochmueller-seocli)

PHPackages © 2026

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