PHPackages                             arachnid/shield - 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. arachnid/shield

ActiveLibrary[Security](/categories/security)

arachnid/shield
===============

A client for scanning media for CSAM using the Arachnid Shield API.

2377↑68.2%PHP

Since Nov 24Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/CdnCentreForChildProtection/arachnid-shield-sdk-php)[ Packagist](https://packagist.org/packages/arachnid/shield)[ RSS](/packages/arachnid-shield/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Arachnid Shield PHP Client
==========================

[](#arachnid-shield-php-client)

This library is a PHP Client for the Arachnid Shield API.

The Arachnid Shield API is a free HTTP API that implements the scanning of media (images or videos) for proactive detection of known CSAM and harmful/abusive images of children. Maintained by the Canadian Centre for Child Protection, it offers API endpoints to scan media (images or videos) against an existing database of known CSAM images.

Installation
============

[](#installation)

You may install the client in your PHP project using composer:

```
composer require arachnid/shield

```

Usage
-----

[](#usage)

An example of scanning a media file on disk for CSAM:

```
use ArachnidShield\ArachnidShield;

include __DIR__ . "/../vendor/autoload.php";

$shield = new ArachnidShield("username", "password");
$scannedMedia = $shield->scanMediaFromFile("path/to/image.jpeg");
if ($scannedMedia->matchesKnownMedia()) {
    echo "Scanned media has matches to known material";
}
```

An example of scanning a media file hosted at a website you own:

```
use ArachnidShield\ArachnidShield;

include __DIR__ . "/../vendor/autoload.php";

$shield = new ArachnidShield("username", "password");
$scannedMedia = $shield->scanMediaFromUrl("https://example.com/path/to/image.jpeg");
if ($scannedMedia->matchesKnownMedia()) {
    echo "Scanned media has matches to known material";
}
```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance42

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/14a021a7c938bcadcde3221cd06e77a4c94fbc69b8bef5446038abf834e3714b?d=identicon)[CdnCentreForChildProtection](/maintainers/CdnCentreForChildProtection)

---

Top Contributors

[![CdnCentreForChildProtection](https://avatars.githubusercontent.com/u/166165190?v=4)](https://github.com/CdnCentreForChildProtection "CdnCentreForChildProtection (5 commits)")

---

Tags

arachnid-shieldarachnid-shield-sdkprojectarachnid

### Embed Badge

![Health badge](/badges/arachnid-shield/health.svg)

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

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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