1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-07-07 10:03:39 +02:00

155 Commits

Author SHA1 Message Date
c28df65f42 adhere to (mostly) PSR12, check codestyle in CI 2025-01-11 20:21:41 +01:00
f440bb654d check php syntax with error_reporting=-1 2025-01-11 20:13:29 +01:00
9931b97642 fix indentation 2.0.3 2025-01-05 21:33:28 +01:00
41fcec6b8e Merge branch 'master' of github.com:dannyvankooten/AltoRouter 2025-01-05 21:30:50 +01:00
9d62094f74 check php syntax on all supported versions 2025-01-05 21:30:35 +01:00
bc6b911a6d Merge pull request #285 from xpetter/patch-1
Update AltoRouter.php for php 8.4
2024-12-16 14:27:40 +01:00
5159909a81 Update AltoRouter.php
fix for php 8.4 and keep php 7.3 support
2024-12-16 14:13:20 +01:00
71389237e5 Update AltoRouter.php for php 8.4
Fix for php8.4
AltoRouter::map(): Implicitly marking parameter $name as nullable is deprecated.
AltoRouter::match(): Implicitly marking parameter $requestUrl as nullable is deprecated.
AltoRouter::match(): Implicitly marking parameter $requestMethod as nullable is deprecated.
2024-12-16 10:00:57 +01:00
36f67da100 bump required php version to 7.3 2023-11-30 10:10:31 +01:00
4270bb5ca2 bump php version requirement to 7.0 and add types on all methods 2023-10-09 20:54:04 +02:00
77a2e14681 fix phpcs issues 2023-10-09 20:49:37 +02:00
f327fbb5bf test on php 8.2 and php 8.3 too 2023-10-09 20:46:07 +02:00
63bb784d76 update links to point to docs 2023-10-09 20:23:45 +02:00
bb7b009331 update phpunit to 9.6 & migrate config to latest schema 2023-10-09 19:46:04 +02:00
20674b8953 address PHP8.x warnings about return type
this requires PHP 7.1 for the void return type, but only for running the
test suite.
2022-12-08 11:12:36 +01:00
ac028a7f3f run tests only on php >= 7.3 2022-02-17 10:42:10 +01:00
0a94ba4142 switch to GitHub actions for running test suite 2022-02-17 10:39:54 +01:00
85c453b12c update phpunit to latest version 2022-02-17 10:31:41 +01:00
f6fede4f94 Merge pull request #247 from aliazizi/patch-1
Check for empty request URI, thank you @aliazizi
2.0.2
2020-03-09 09:34:59 +01:00
4efac02fad Update AltoRouter.php
Check $request is empty string or not
2020-02-22 15:57:56 +03:30
6ffb025022 use svg travis icon 2019-11-23 12:03:36 +01:00
127f6e9699 fix #241 2.0.1 2019-11-23 12:01:41 +01:00
a80bb36f11 add test for #241 2019-11-23 11:35:40 +01:00
a51c74793a benchmark using real-life api for a better comparison 2019-11-10 21:16:42 +01:00
7e2b48db00 type-hint array in constructor parameter too 2.0 2019-11-10 20:33:12 +01:00
3a97b2c432 use short array notation in readme too 2019-11-10 20:32:52 +01:00
98e97407de use vendored phpunit in travis 2019-11-10 20:27:38 +01:00
17d00ed90e update readme 2019-11-10 20:26:36 +01:00
a34caaf60c Merge pull request #234 from DevFelixDorn/code-maintainability
Add PHPCS & type-hinting for array function arguments. Use (CS enforced) short array notation everywhere. Thanks @DevFelixDorn
2019-11-10 20:18:39 +01:00
a01166760c phpcs formatting 2019-07-03 21:44:06 +02:00
cd918de64b add @covers on every test, remove array long syntax 2019-07-03 21:43:47 +02:00
2360f527b0 add type hinting, removed array long syntax 2019-07-03 21:40:17 +02:00
24360d6162 add php-cs to match with PSR2 requirements 2019-07-03 21:39:35 +02:00
dce6efdea2 fix phpunit on older php versions 2019-02-07 09:52:34 +01:00
ecb5f69042 use travis phpunit so that we can test on lower php versions too 2019-02-07 09:44:18 +01:00
9e9767e8fa add support for php's built-in web server to example. #226 2019-02-07 09:38:22 +01:00
87d93b6840 update benchmark 2019-02-07 09:16:23 +01:00
9bdfc55eb3 fix tests by making compileRoute protected instead 2019-02-07 09:16:13 +01:00
df96d7270c update to phpunit 7.5 2019-02-06 20:13:21 +01:00
e2a07ec452 test recent php versions, stop testing 5.3-5.5 2019-02-06 20:01:07 +01:00
ca2d425bc6 add example for url generation to readme 2018-08-19 11:51:01 +02:00
281c5631db add license to main php file too 2018-08-19 11:47:59 +02:00
58299f4d0d add license file 2018-08-19 11:47:09 +02:00
1ff4165b28 improve benchmark by preparing first, matching & only mapping two routes 2017-04-10 16:36:22 +02:00
689670f4dc Merge pull request #99 from koenpunt/bare-optional-parameter
Allow for optional parameters on bare/root url
2017-04-04 20:37:25 +02:00
72dd5199bd multi optional 2017-04-02 20:41:58 +02:00
be64536dcb prevent strip of preceding slash at base 2017-04-02 20:41:10 +02:00
f18a57d481 add failing test for generate 2016-12-30 00:11:18 +01:00
e72248c744 add failing test for #98 2016-12-30 00:11:18 +01:00
693752b77a simplify loop for non-param substring (#131)
optimize comparison using strcmp functions
2016-06-21 23:27:25 +02:00