PHPackages                             kirimemail/link-check - 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. [Security](/categories/security)
4. /
5. kirimemail/link-check

ActiveLibrary[Security](/categories/security)

kirimemail/link-check
=====================

Check link safety(redirect,safebrowsing,etc)

1.0.9(6y ago)0150MITPHPCI failing

Since Mar 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kirimemail/link-check)[ Packagist](https://packagist.org/packages/kirimemail/link-check)[ RSS](/packages/kirimemail-link-check/feed)WikiDiscussions master Synced 3d ago

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

PHP library to check link safety
================================

[](#php-library-to-check-link-safety)

[![Build Status](https://camo.githubusercontent.com/3e823f2686564687ca61c0c9076756215a0a1dfc7c63a36f803b47053a452daf/68747470733a2f2f7472617669732d63692e6f72672f6b6972696d656d61696c2f6c696e6b2d636865636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kirimemail/link-check)

Usage:
------

[](#usage)

```
//create checker with default options
$checker = new Kirimemail\LinkCheck\Checker([
    'max_redirects' => 3,
    'whitelist' => [
         '*://google.*',
    ],
    'check_google_safebrowsing' => true,
    'google_api_key' => '', //necessary if you need to check Google Safebrowsing
    'check_phishtank' => true,
    'phishtank_api_key' => '' //optional, but have low rate limit
]);

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

if ($status === Kirimemail\LinkCheck\Checker::OK) {
    // link is OK
} else {
    // link is suspicious
}

if ($status === Kirimemail\LinkCheck\Checker::DIFFERENT_REDIRECT) {
    // link has different redirect locations
}

if ($status === Kirimemail\LinkCheck\Checker::TOO_MUCH_REDIRECTS) {
    // link has more redirects than expected
}

if ($status === Kirimemail\LinkCheck\Checker::GOOGLE_UNSAFE) {
    // link is considered unsafe by google
}

if ($status === Kirimemail\LinkCheck\Checker::PHISHTANK_VALID) {
    // link is a valid phishing link in phishtank
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

Recently: every ~64 days

Total

10

Last Release

2356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a96a58157dcd8e62c9f1377f8ef22e194a6a67d90ee87cf515558e049c84d5a?d=identicon)[gamalan](/maintainers/gamalan)

---

Top Contributors

[![gamalan](https://avatars.githubusercontent.com/u/1147539?v=4)](https://github.com/gamalan "gamalan (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kirimemail-link-check/health.svg)

```
[![Health](https://phpackages.com/badges/kirimemail-link-check/health.svg)](https://phpackages.com/packages/kirimemail-link-check)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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