Releases: matecat/klein.php
Releases · matecat/klein.php
Version 3.2.3
Version 3.2.3
Features
- Added abstract
json()method toAbstractResponseclass, enforcing a consistent JSON response contract across all response implementations. - Added
declare(strict_types=1)to all source files for improved type safety. - Resolved all PHPStan static analysis errors across the codebase.
Refactoring
- Refactored tests and benchmarks with updated namespaces and structural improvements.
Documentation
- Added routing architecture technical documentation (
docs/routing-architecture.md). - Updated Packagist badge link in
README.md.
Full Changelog: v3.2.2...v3.2.3
Version 3.2.0
Features
- Lightning fast routing! From 100x to 1000x faster dispatch. Big performance improvements for large route collections with radix Tree routing. Benchmarks
- 100% Code Coverage
- Breaking changes, see UPGRADING.md
Full Changelog: v3.1.0...v3.2.0
Version 3.1.0
Features
- Support for PHP 8.3
- Dropped support for previous PHP versions
- Updated PHPUnit to version 12
Version 3.0.0
Features
- Support for PHP >= 8.1
- Dropped support for previous PHP versions
- Removed the "magical" way of inputting mask in DataCollections in favor of PHP 8 named arguments.
- Removed use of 404/405 "routes" (deprecated in previous versions). Use
$klein->onHttpError()instead. - Removed "magical" callback behavior in favor of PHP 8.3 named arguments. Now the function accepts an optional string path as the first parameter and a NOT optional callback.
- Removed "magical" markdown behavior. Now the function accepts a string and an optional array of values.
- Removed "magical" markdown behavior. Now the function accepts a string and an optional array of values.
- Removed "magical" behavior of
ServiceProvider::flash()method. Now the function accepts a string and an optional array of values. - Updated PHPUnit to version 10