The ultimate file-extension & mime-type library. Quickly detect the extension/mime-type of a file or stream using a library of up to 14,000+ signatures using magic numbers (also known as file headers) and magic words. Also, easily convert between file extensions and mime types.
Helper project for Magic to wire up everything easily by simply adding one package, and invoking two simple methods. When using Magic, this is (probably) the only package you should actually add, since this package pulls in everything else you'll need automatically, and wires up everything sanely by...
Don't let users to inject you an invalid file! FileTypeChecker is a easy to use library that allows you to read file and recognize its type. This will help you to validate all files that is provided by external sources.