Skip to content

Releases: SoftCreatR/php-mime-detector

5.1.0

02 Nov 01:20
307b7c2

Choose a tag to compare

  • 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

17 Oct 09:41
6c80f01

Choose a tag to compare

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

01 Sep 17:21
ae20459

Choose a tag to compare

What's Changed

  • Code Overhaul. This is a breaking change, because it requires PHP 8.1 now, and the whole structure has been changed.
  • Detection of .xls files by @voult in #10

New Contributors

  • @voult made their first contribution in #10

Full Changelog: 3.2.1...4.0.0

3.2.1

30 May 10:35

Choose a tag to compare

Release 3.2.1

3.2.0

02 Dec 16:03

Choose a tag to compare

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

25 Aug 20:51

Choose a tag to compare

  • Added detection for AVIF files
  • Performed small code optimizations

Release 3.0.0

29 Oct 19:19

Choose a tag to compare

- 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

21 Oct 09:09

Choose a tag to compare

Release 2.0.1

2.0.0

16 Oct 04:22

Choose a tag to compare

Release 2.0.0

1.0.0

15 Oct 05:45

Choose a tag to compare

- Updated docs