Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

File Type Detector Laravel Package

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.

View on GitHub
Deep Wiki
Context7
2.3.3

What's Changed

Full Changelog: https://github.com/BrandEmbassy/php-file-type-detector/compare/2.3.2...2.3.3

2.2.2

What's Changed

  • Add new m4a FileType

Full Changelog: https://github.com/BrandEmbassy/php-file-type-detector/compare/2.2.1...2.2.2

2.2.1

What's Changed

  • Detector: Add detect file extension by mimeType with charset

Full Changelog: https://github.com/BrandEmbassy/php-file-type-detector/compare/2.2.0...2.2.1

2.0.4
1.2.1
  • Added more JPEG signatures
2.0.2
  • Added more JPEG signatures
2.0.1

Extension is not nullable in FileInfo

2.0
  • Replace format anonymous array with FileInfo object
  • New detectFromContent method to get FileInfo from string content
1.2

Implements BrandEmbassy coding standards

1.1.6
  • Add PEM file detection (only by name)
1.1.5
  • jpeg definition
1.1.4
  • add another OGG definition
1.1.3
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime