MetaProbe

Extracts, analyzes and sanitizes EXIF, IPTC & XMP metadata in PHP with built-in privacy scanning and CLI

$composer require metaprobe/metaprobe

Why MetaProbe?

PHP web apps regularly process user images yet lack a unified, security-first tool to extract metadata without leaking GPS, device fingerprints or author info. Existing solutions are either outdated, limited to EXIF, or miss sanitization. MetaProbe targets developers building media managers, upload pipelines, forensic tools and AI-augmented image workflows.

Features

Everything you need, nothing you don't.

๐Ÿ“ธ

Unified Extraction

Single API reads EXIF, IPTC and XMP from JPEG, PNG and TIFF in one call

๐Ÿ›ฐ๏ธ

GPS Decoder

Converts DMS coordinates to decimal with Google Maps link generator

๐Ÿ”’

Privacy Scanner

Flags risky fields and returns a numeric safety score

๐Ÿงผ

Smart Sanitizer

Rewrites images stripping PII while preserving copyright and profiles

๐Ÿ“Ÿ

Rich CLI

probe and sanitize commands with JSON output and verbose reporting

๐Ÿ“Š

Structured Reports

Metadata DTO with toArray, toJson and typed getters for easy automation

โšก

Zero-config Core

Depends only on PHP extensions; optional Symfony Console for CLI

๐Ÿงฉ

Reader Interface

Pluggable readers so custom formats can be added in one file

See it in action

From install to result in seconds.

MetaProbe terminal demo

Get started

Three steps. Full docs live in the README.

Install
composer require metaprobe/metaprobe
Run
php bin/metaprobe probe sample.jpg --format=pretty
Test
vendor/bin/phpunit

Like it? Give it a โญ

Stars help other developers discover MetaProbe. Issues and PRs are very welcome.

Star on GitHub