PHP Classes

File: src/SoftCreatR/MimeDetector/MimeDetector.php

Recommend this page to a friend!
  Classes of Sascha Greuel   PHP MIME Type to Extension Detector   src/SoftCreatR/MimeDetector/MimeDetector.php  
File: src/SoftCreatR/MimeDetector/MimeDetector.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP MIME Type to Extension Detector
Detect the type of a file analyzing its content
Author: By
Last change: Merge pull request #10 from voult/patch-1

Detection of .xls files
Improved detection of JXL files
Update MimeDetector.php
Update MimeDetector.php
Detection of .xls files

Support for detection of .xls (MS Office Excel) files that have the same header as .msi files - which can be used to send executable files disguised as .xls'es.
Comparing number of .xls files I found similiarity at 512 byte, that differ from .msi files.
Release 3.2.1
Set minimum required PHP to 7.1
Release 3.2.0

- Switched from PSR-2 to PSR-12
- Added roave/security-advisories & squizlabs/php_codesniffer as dev requirements
- Switched from LGPL to ISC
- Switched from Travis to GitHub actions
- Added CODE_OF_CONDUCT
- Added issue templates
- Added pull request template
- Switched from BMC to GitHub sponsors

- Applied small bugfixes
- Fixed some spelling issues
Added detection for avif files

Also dropped official support for PHP < 7.2 (it works under 7.1 and 7.0, but that's not guaranteed for the future)
Date: 1 year ago
Size: 39,504 bytes

You need to be a registered user and login to get this file.

1,614,395 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on: