Releases: SoftCreatR/php-mime-detector
Releases · SoftCreatR/php-mime-detector
5.1.0
-
Introduced a runtime detector extension API with priority sorting, cleanup helpers, and automatic pipeline integration for custom signature detectors.
-
Added comprehensive README guidance that walks through registering repository mappings, attaching extensions, and composing bespoke detector pipelines.
-
Refreshed the Font Awesome icon mapping and expanded PHPUnit coverage with reusable recording doubles to lock in icon heuristics and extension behaviour.
5.0.0
feat: modularise MIME detection and document extension workflow
- replace the monolithic detector with a detection context, pipeline coordinator, and category-specific signature detectors that cache and return rich match objects
- harden the façade with guarded file handling, hash helpers, base64 URI fallbacks, and repository-driven MIME/extension lookups backed by a bi-directional map
- refresh the README with a clearer quick start, lookup examples, and a step-by-step guide for registering custom detectors and mappings
- add focused exception factories and byte-cache validation to signal unreadable files and support exhaustive test coverage
- add support for ~70 new file types
Full Changelog: 4.0.0...5.0.0
4.0.0
3.2.1
Release 3.2.1
3.2.0
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
3.1.0
- Added detection for AVIF files
- Performed small code optimizations
Release 3.0.0
- Switched from Singleton, because it made testing more complicated and did not provide any improvements compared to a "normal" class - Added new method setByteCacheMaxLength() - Updated test - Updated dependencies (composer.lock) - Updated readme
2.0.1
Release 2.0.1
2.0.0
Release 2.0.0
1.0.0
- Updated docs