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.

1198—0%PHP

Since Nov 24Pushed 5mo 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 1mo 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

22

—

LowBetter than 22% of packages

Maintenance48

Moderate activity, may be stable

Popularity16

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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[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

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

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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