Libraries tagged by magic bytes

tinram/file-identifier

9 Favers
346 Downloads

A simple library to identify files through MIME types and file signatures.

Go to Download


twstec/kit-uploads

0 Favers
264 Downloads

Uploads seguros do TWS Laravel Starter Kit, sem telas: validação pelo conteúdo real (magic bytes), allowlist e limite por tipo, recusa de executável, script embutido e PDF com ações automáticas, reprocessamento de imagem, nome seguro, entrega por URL assinada com validade, foto de perfil e o POST /api/v1/uploads.

Go to Download


adachsoft/image-reader-lib

0 Favers
30 Downloads

GD-based image reader with magic-byte format detection, size limits, and proportional downscaling.

Go to Download


sugarcommerce/file-inspect

0 Favers
1 Downloads

Look at the bytes a file actually contains: executable signatures refused whatever the name, contents that disagree with the extension, archives carrying what you would not accept directly, and double extensions that hide the real one. Pure functions, no I/O, zero dependencies.

Go to Download


rikymds/magika-php

0 Favers
1 Downloads

Detect the real type of a file from PHP with Google's Magika AI model. Works on shared hosting: no exec(), no native binary, automatic finfo fallback.

Go to Download


laravelplus/content-security

0 Favers
4 Downloads

Defense-in-depth content security for Laravel: malware scanning, MIME/magic-byte verification, archive/image/PDF inspection, HTML sanitization, URL/SSRF checks, quarantine, audit trail and a Vue 3 security console.

Go to Download


rikudou/mime-type-detector

0 Favers
3 Downloads

Detects mime types using magic bytes / magic numbers

Go to Download