All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Set the minimum supported version of PHP to 7.4
- Certify support for PHP up to version 8.4
- Define type declarations for all parameters and return values
- Remove namespaced folder in accordance with PSR-4. This does not change functionality or affect code using this library in any way.
- Update test runner on Travis CI to use latest testing tools
- Add rules for Scrutinizer
- Update documentation and add contributing documentation
- Add .gitattributes file to restrict exported files
- Changed repository ownership to https://github.com/conneg and updated Packagist and URLs accordingly
- Added CHANGELOG to project
- Updated Travis CI build to include testing on PHP 7
- Updated Travis CI build to lint and check for coding standards
- Coding standards fixes
- Make type/subtype matches only add fitness when they aren't "*"
- Upgraded package to use PSR-4 autoloading
- Various documentation updates
- Rename
fitnessAndQualityParsedtoqualityAndFitnessParsedto represent order of returned array - Simplify process of rejecting unacceptable types
- Use order of
$supportedarray instead of$tieBreakerto break ties - Clarify exception message
- Make difference between
parseMediaRangeandparseMimeTypemore clear - More accurately differentiate between media-ranges and mime-types
- Various documentation updates
- Change visibility for
parseMimeTypeto public - Parse subtype for data format
- Improved
parseMediaType()logic for setting quality to one (1) - Adding tie-breaker functionality
- Fixed bug when quality for a type was set to zero
- Fixed wrong ordering of candidates
- Improved test suite
- Support running tests on Travis CI
- Various documentation updates
- Initial release of port of mimeparse.php script