brandembassy/file-type-detector
Detect file type and MIME by filename extension or by inspecting binary/stream content. Returns category, format, and MIME on success (or false). Includes a helper to resolve MIME only. Install via composer: brandembassy/file-type-detector.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| degraciamathieu/php-arguments-detector | 0.81 | Detect and analyze function/method arguments in PHP using a lightweight, reflection-based approach. Useful for tooling that needs to inspect call signatures, validate inputs, or generate metadata about parameters and defaults across codebases. | 13 | 13 | 1 | 4 | 0 | 0.4 | 1.5 | — | 3 years ago | |
| ergebnis/agent-detector | 0.81 | Detect the presence of coding agents in your PHP app by checking environment variables. Supports Amp, Antigravity, Augment, Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, and more via a simple Detector::isAgentPresent() API. | 14 | 9 | 1 | 3M | 1 | 19.1 | 63.8 | MIT | 1 month ago | |
| typhoon/change-detector | 0.81 | — | 0 | 0 | 0 | 2K | 0 | 1.2 | 45.2 | MIT | 1 year ago | |
| jaybizzle/crawler-detect | 0.80 | PHP library to detect bots, crawlers, and spiders by inspecting User-Agent and HTTP_FROM headers. Recognizes thousands of user agents, updated regularly. Simple API: isCrawler() for current or given UA, and getMatches() to see the detected bot name. | 2,361 | 2,383 | 278 | 2M | 0 | 50.2 | 48.6 | MIT | 1 week ago | |
| vipx/bot-detect | 0.80 | Detect and identify web crawlers (Google, Bing, Yahoo, etc.) from user agent and IP. Loads bot metadata from YAML, returns matched bot details, and includes optional caching and configurable cache naming/dumping for better performance. | 45 | 49 | 15 | 3K | 3 | 2.4 | 25.5 | MIT | 3 years ago | |
| vipx/bot-detect-bundle | 0.80 | — | 14 | 15 | 11 | 538 | 2 | 1.4 | 21.6 | — | 7 years ago | |
| bengor-file/file | 0.80 | Lightweight PHP file management library built with Domain-Driven Design. Provides common operations like upload (default or by hash), overwrite, remove, and rename, with a tested, documented codebase and flexible storage integration. | 2 | 2 | 1 | 91 | 0 | 3.3 | 20.7 | MIT | 8 years ago | |
| onnov/detect-encoding | 0.79 | Fast Cyrillic text encoding detector for PHP to replace unreliable mb_detect_encoding. Identifies Windows-1251, KOI8-R, ISO-8859-5 (optionally IBM866/MacCyrillic) using code page ranges, with high accuracy even on short strings and very large texts. | 22 | 23 | 5 | 111K | 1 | 2.2 | 50.8 | MIT | 5 years ago | |
| dflydev/apache-mime-types | 0.79 | Parse and query Apache mime.types mappings in PHP. Includes bundled Apache mime.types plus JSON representation. Use parser to read mime.types files, or repositories (PHP, JSON, flat) to look up MIME type by extension and extensions by type. | 70 | 77 | 12 | 32K | 1 | 1.0 | 37.0 | — | — | |
| kekos/multipart-form-data-parser | 0.79 | Parse multipart/form-data bodies in PHP, including raw HTTP input. Useful for handling file uploads and form fields when your environment doesn’t populate $_FILES/$_POST (e.g., non-standard servers, PUT/PATCH requests). | 1 | 1 | 1 | 9K | 0 | 0.0 | 50.3 | — | — | |
| akeneo/php-coupling-detector | 0.79 | Detect PHP coupling issues based on configurable rules by analyzing class use statements. Supports forbidden, discouraged, and only rules, with error/warning violations. Includes commands to detect violations and list unused requirements. | 43 | 44 | 5 | 7K | 18 | 9.2 | 35.4 | MIT | 1 year ago | |
| league/mime-type-detection | 0.78 | Fast, reliable MIME type detection for PHP. Detects from file extensions and binary signatures using shared databases, with a simple API and customizable mappings. Ideal for uploads, validation, and content-type handling in Laravel and other PHP apps. | 1,337 | 1,344 | 30 | 12M | 2 | 8.6 | 57.0 | MIT | — | |
| diego182/mobile-detect | 0.78 | Symfony bundle wrapper for Mobile Detect. Provides auto-configuration and autowiring so you can inject a MobileDetect service into your app to detect mobile/tablet devices from the user agent with minimal setup. | 1 | 1 | 0 | 0 | 0 | 11.6 | — | MIT | 5 months ago | |
| matomo/device-detector | 0.78 | Parses User-Agent strings and browser Client Hints to identify device type (desktop/tablet/mobile/TV/console), client apps (browsers, media players, feed readers), operating systems, and device brand/model. Composer-ready PHP library. | 3,492 | 3,509 | 508 | 1M | 63 | 78.6 | 70.0 | LGPL-3.0 | 3 weeks ago | |
| sajidwarner/laravel-device-detector | 0.77 | — | 5 | 6 | 0 | 4 | 0 | 19.2 | 3.5 | MIT | 1 month ago | |
| jshttp/mime-db | 0.77 | Comprehensive database of MIME types and file extensions for Node.js. Provides up-to-date mappings sourced from multiple references, ideal for content-type detection, file upload handling, and HTTP header generation in servers, proxies, and tooling. | 1,245 | — | 286 | — | 24 | 24.2 | 16.7 | MIT | 1 year ago | |
| php-standard-library/file | 0.76 | Typed file handles for safe reading and writing in PHP, with explicit write modes and advisory file locking. Part of PHP Standard Library, designed to make filesystem IO clearer and less error-prone. | 1 | 1 | 0 | 28K | 0 | 20.0 | 64.3 | MIT | 4 weeks ago | |
| kherge/file-manager | 0.76 | Strict file and stream manager for PHP: safe read/write operations with unified APIs for files, in-memory strings, and existing streams. Supports iteration over contents and consistent handling via File, Memory, and Stream managers. | 8 | 8 | 3 | 2K | 1 | 2.8 | 33.1 | NOASSERTION | 9 years ago | |
| sextanet/laravel-files | 0.75 | — | 1 | 1 | 0 | 247 | 0 | 18.4 | 34.4 | MIT | 2 months ago | |
| unisharp/laravel-filemanager | 0.75 | UniSharp Laravel Filemanager adds a responsive web UI to browse, upload, manage, and select files/images in Laravel apps. Supports popular editors, configurable disks/paths, customization, and events—ideal for CMS/admin panels. | 2,149 | 2,179 | 738 | 55K | 214 | 75.4 | 52.2 | MIT | 5 days ago |
How can I help you explore Laravel packages today?