├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug.md │ ├── documentation.md │ └── feature.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── Test.yml ├── .gitignore ├── .gitmodules ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── composer.json ├── phpcs.xml ├── phpunit.xml.dist ├── src └── SoftCreatR │ └── MimeDetector │ ├── Attribute │ └── DetectorCategory.php │ ├── ByteCacheHandler.php │ ├── Contract │ ├── FileSignatureDetectorInterface.php │ └── MimeTypeResolverInterface.php │ ├── Detection │ ├── DetectionContext.php │ ├── DetectorPipeline.php │ ├── FileBuffer.php │ └── MimeTypeMatch.php │ ├── Detector │ ├── AbstractSignatureDetector.php │ ├── ArchiveSignatureDetector.php │ ├── DocumentSignatureDetector.php │ ├── ExecutableSignatureDetector.php │ ├── FontSignatureDetector.php │ ├── ImageSignatureDetector.php │ ├── MediaSignatureDetector.php │ ├── MiscSignatureDetector.php │ ├── XmlSignatureDetector.php │ └── ZipSignatureDetector.php │ ├── FileHandler.php │ ├── MimeDetector.php │ ├── MimeDetectorException.php │ ├── MimeTypeDetector.php │ ├── MimeTypeRepository.php │ └── Support │ └── DetectorExtensions.php └── tests └── SoftCreatR └── MimeDetector ├── Attribute └── DetectorCategoryTest.php ├── ByteCacheHandlerTest.php ├── DetectionContextTest.php ├── Detector ├── ArchiveSignatureDetectorTest.php ├── DocumentSignatureDetectorTest.php ├── ExecutableSignatureDetectorTest.php ├── FontSignatureDetectorTest.php ├── ImageSignatureDetectorTest.php ├── MediaSignatureDetectorTest.php ├── MiscSignatureDetectorTest.php ├── XmlSignatureDetectorTest.php └── ZipSignatureDetectorTest.php ├── DetectorExtensionsTest.php ├── DetectorPipelineTest.php ├── FileBufferTest.php ├── FileHandlerTest.php ├── MimeDetectorExceptionTest.php ├── MimeDetectorTest.php ├── MimeDetectorTestUtil.php ├── MimeTypeDetectorTest.php ├── MimeTypeMatchTest.php ├── MimeTypeRepositoryTest.php └── RecordingDetector.php /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.github/ISSUE_TEMPLATE/bug.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/documentation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.github/ISSUE_TEMPLATE/documentation.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.github/ISSUE_TEMPLATE/feature.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/Test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.github/workflows/Test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/.gitmodules -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/composer.json -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/phpcs.xml -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Attribute/DetectorCategory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Attribute/DetectorCategory.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/ByteCacheHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/ByteCacheHandler.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Contract/FileSignatureDetectorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Contract/FileSignatureDetectorInterface.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Contract/MimeTypeResolverInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Contract/MimeTypeResolverInterface.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detection/DetectionContext.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detection/DetectionContext.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detection/DetectorPipeline.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detection/DetectorPipeline.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detection/FileBuffer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detection/FileBuffer.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detection/MimeTypeMatch.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detection/MimeTypeMatch.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/AbstractSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/AbstractSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/ArchiveSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/ArchiveSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/DocumentSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/DocumentSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/ExecutableSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/ExecutableSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/FontSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/FontSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/ImageSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/ImageSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/MediaSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/MediaSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/MiscSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/MiscSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/XmlSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/XmlSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Detector/ZipSignatureDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Detector/ZipSignatureDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/FileHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/FileHandler.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/MimeDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/MimeDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/MimeDetectorException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/MimeDetectorException.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/MimeTypeDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/MimeTypeDetector.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/MimeTypeRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/MimeTypeRepository.php -------------------------------------------------------------------------------- /src/SoftCreatR/MimeDetector/Support/DetectorExtensions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/src/SoftCreatR/MimeDetector/Support/DetectorExtensions.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Attribute/DetectorCategoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Attribute/DetectorCategoryTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/ByteCacheHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/ByteCacheHandlerTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/DetectionContextTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/DetectionContextTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/ArchiveSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/ArchiveSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/DocumentSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/DocumentSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/ExecutableSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/ExecutableSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/FontSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/FontSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/ImageSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/ImageSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/MediaSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/MediaSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/MiscSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/MiscSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/XmlSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/XmlSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/Detector/ZipSignatureDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/Detector/ZipSignatureDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/DetectorExtensionsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/DetectorExtensionsTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/DetectorPipelineTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/DetectorPipelineTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/FileBufferTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/FileBufferTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/FileHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/FileHandlerTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/MimeDetectorExceptionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/MimeDetectorExceptionTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/MimeDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/MimeDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/MimeDetectorTestUtil.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/MimeDetectorTestUtil.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/MimeTypeDetectorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/MimeTypeDetectorTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/MimeTypeMatchTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/MimeTypeMatchTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/MimeTypeRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/MimeTypeRepositoryTest.php -------------------------------------------------------------------------------- /tests/SoftCreatR/MimeDetector/RecordingDetector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftCreatR/php-mime-detector/HEAD/tests/SoftCreatR/MimeDetector/RecordingDetector.php --------------------------------------------------------------------------------