Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
90e2014
Works without warnings in PHP 8.3
Ostico Oct 14, 2025
5e27d90
Save
Ostico Oct 15, 2025
c19661e
Tested for PHP 8.3
Ostico Oct 16, 2025
b775f07
Phpstan lvl 7
Ostico Oct 17, 2025
1ed1987
Removed TODO for deprecation
Ostico Oct 17, 2025
1a5449d
Updated ChangeLog
Ostico Oct 17, 2025
b47bc09
Updated ChangeLog
Ostico Oct 17, 2025
eea2527
Updated Ip validaiton tests
Ostico Oct 17, 2025
4244ce5
Updated travis.yml
Ostico Oct 17, 2025
52ddc94
Updated travis yml
Ostico Oct 17, 2025
4dde647
Updated travis.yml to support coverage
Ostico Oct 17, 2025
434cd87
Removed tests for php8.3 (bug)
Ostico Oct 17, 2025
5c5041d
Fix: PHP8.4
Ostico Oct 17, 2025
7a0747b
Fixed implicit nullable type hint definition
Ostico Oct 17, 2025
6822db6
Removed deprecations for implicit nullable method type hints
Ostico Oct 17, 2025
37c32a8
Merge pull request #1 from matecat/php8.3
Ostico Oct 17, 2025
462a91c
Update coding standards from PSR-2 to PSR-12
Ostico Oct 17, 2025
1730d52
Update README to remove PHP version specification
Ostico Oct 17, 2025
3ce129c
Updated Readme
Ostico Oct 17, 2025
8ffe198
Updated package name in composedr.json
Ostico Oct 17, 2025
933bc37
Faster: ~10x, searching for more optimizations
Ostico Oct 18, 2025
9bca3a9
Route regexp generation inside the route object
Ostico Oct 18, 2025
ecb7271
Implemented PSR-6 cache
Ostico Oct 18, 2025
27c5b5b
Removed is_callable redundant check
Ostico Oct 19, 2025
93927b4
Improved static routes check
Ostico Oct 19, 2025
336c4c7
Little more optimizations in Rote class and Klein
Ostico Oct 19, 2025
4e39892
Little refactory to remove method from Klein class
Ostico Oct 19, 2025
1493e6f
Implemented Radix Tree algorithm
Ostico Oct 19, 2025
f954112
Improvement:
Ostico Oct 20, 2025
6d2c9b8
Speed increase: +100x
Ostico Oct 20, 2025
52900bb
After benchmarks, removed PSR-6
Ostico Oct 20, 2025
984edc8
Little improvements
Ostico Oct 21, 2025
06c6ac2
Update Upgrading.md
Ostico Oct 21, 2025
a6fc9df
More micro optimizations
Ostico Oct 22, 2025
5f70e58
More optimizations
Ostico Oct 22, 2025
11c0155
Improvements for static routes
Ostico Oct 23, 2025
d2c7297
RC
Ostico Oct 23, 2025
456b252
Removed coverage from Travis CI
Ostico Oct 23, 2025
be67b50
Fixed bug in Header response
Ostico Oct 24, 2025
7961e43
Fixed dynamic detection on namespaces
Ostico Oct 27, 2025
d842754
Added test for dynamic namespace
Ostico Oct 27, 2025
30054d9
Renamed Request::method to Request::httpMethod to allow klein to be
Ostico Oct 28, 2025
40c7731
Refactor tests and benchmarks; namespace updates and improvements.
Ostico Feb 18, 2026
a5526b7
fix: resolve all PHPStan static analysis errors
Ostico Feb 18, 2026
5f626b3
Fixed analisys tool
Ostico Feb 18, 2026
ca6f615
refactor: add declare(strict_types=1) to all source files and fix typ…
Ostico Feb 19, 2026
dde2f74
Update Packagist badge link in README.mdUpdated Readme (packagist badge)
Ostico Feb 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Auto detect text files and perform LF normalization
* text=auto

# Export ignore (these files are not included in the distributed package)
/.gitattributes export-ignore
/.gitignore export-ignore
/.github export-ignore
/.idea export-ignore
/.phpunit.cache export-ignore
/.travis.yml export-ignore

/tests export-ignore
/vendor export-ignore

/phpunit.xml export-ignore
/phpunit.xml.dist export-ignore
/phpstan.neon export-ignore

/composer.lock export-ignore
/composer.phar export-ignore

/BENCHMARKS.md export-ignore
/docs export-ignore
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ docs/

# Auto-generated code coverage report
report/
/.phpunit.cache/
/.phpunit.result.cache
/coverage.clover
/cache/
/Benchmarks/
36 changes: 18 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
sudo: false

os: linux
dist: noble
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
- 8.3

env:
global:
- XDEBUG_MODE=coverage

matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true
addons:
sonarcloud:
organization: "matecat"
token: $SONAR_TOKEN

before_script:
- composer install --prefer-dist
- composer install

script:
- composer validate
- ./vendor/bin/phpunit
- ./vendor/bin/phpcs --standard=PSR2 --encoding=utf-8 -p src/ tests/
- ./vendor/bin/phpunit -d memory_limit=-1 --coverage-clover=coverage.xml
- ./vendor/bin/phpunit -d memory_limit=-1
- vendor/bin/phpstan analyse src --error-format=json > phpstan.json

after_success:
- sonar-scanner -X -Dsonar.token=$SONAR_TOKEN -Dsonar.projectKey=matecat_klein.php -Dsonar.sources=src -Dsonar.tests=tests/ -Dsonar.php.coverage.reportPaths=coverage.xml -Dsonar.php.phpstan.reportPaths=phpstan.json
Loading