Releases: kudashevs/accept-language
Releases · kudashevs/accept-language
v3.4.0
- Increase the minimum supported
orchestra/testbench
version - Add a
phpstan/phpstan
dev dependency - Add a Github Action with PHPStan analysis tool
- Add a new
retrieve_accepted_languages
log event - Add a validation for the
default_language
option - Add a new
InvalidOptionValue
exception for this validation - Change the project folders structure
- Change Normalizers simplify the usage
- Fix
DefaultLanguage
wrong fallback option name - Update PHPDoc types
- Update README.md
- Some improvements
Note: this release changes the default behavior for the situation when the process
method has not been called.
Now the public methods will return empty values rather than throwing an error.
Full Changelog: v3.3.0...v3.4.0
v3.3.0
- Add support for PHP 8.3
- Add support for PHPUnit 11
- Update README.md
- Some improvements
Full Changelog: v3.2.0...v3.3.0
v3.2.0
- Fix an issue with boolean configuration values in the Laravel service provider
- Add a fallback language for the
default_language
option - Add new log events to make logging more convenient
- Add a new LogPresenterInterface abstraction
- Add a
log_level
option and related functionality (closes #4) - Add a
log_only
option and related functionality (closes #3) - Update and add new options to the Laravel configuration file
- Update some test suites to cover more test cases
- Update
composer.json
bump the PHPUnit version - Update README.md
- Some improvements
Note: this release adds some new options, please update your Laravel config file (optional)
Full Changelog: v3.1.1...v3.2.0
v3.1.1
v3.1.0
- Add logging functionality (#1)
- Add a new LogProvider abstraction
- Add a new
useLogger
public method - Add a Laravel configuration file
- Add support for Laravel 10
- Add a
psr/log
dependency - Update the Laravel service provider
- Massive update of README.md
- Some improvements
This release introduces a Laravel configuration file with various configuration settings.
For the Laravel users, it is recommended to publish the configuration file after update.
v3.0.1
v3.0.0
- Increase the minimum supported PHP version to 7.4
- Add support for PHP 8.2 version
- Add new
process
andgetHeader
public methods - Add new
use_extlang_subtag
,use_script_subtag
,use_region_subtag
options - Add a new
exact_match_only
option for the restrictive matching - Add support for variant, extension, and private-use subtags
- Update the
accepted_languages
option to accept different separators - Update the matching algorithm to retrieve language tag derivatives
- Update the Laravel service provider
- Update README.md
- Massive refactoring (introduce Factories, Normalizers, Value Objects)