Commit Graph

19 Commits

Author SHA1 Message Date
Skylear
559196be54 ⏱️ Replace preg_replace in tokenize with str_replace 2021-07-15 17:26:28 -05:00
Skylear
0890106d41 Move $uri var in run() 2021-07-15 16:45:56 -05:00
Skylear
64119b258b 📑 write docblocks for the router methods 2021-07-15 16:44:30 -05:00
Skylear
8a523c3ed2 💡 Add function to redefine default parameter constraint 2021-07-15 16:17:53 -05:00
Skylear
3a1e5b65d7 👷 rebuild tokenize() to allow for RegEx constraints on routes via a chain method / #5 2021-07-15 16:14:20 -05:00
Skylear
ece7e35959 Update uri tokenizing to accept \w and \- 2021-07-15 15:42:16 -05:00
Skylear
aa32226435 Adapt uri parser to accept simpler, generic parameter placeholders 2021-07-15 14:26:00 -05:00
Skylear
087ddabfff Remove trailing slash matters, shorten run function 2021-07-15 12:21:22 -05:00
Skylear
a5cd607129 Refactor $callback to $action 2021-07-15 12:01:41 -05:00
Skylear
5a19471b8f Refactor and reorganize entire repo 2021-07-14 16:16:33 -05:00
SteamPixel
7ff0f40ec1 Added method and examples for known routes 2021-02-08 11:14:14 +01:00
SteamPixel
02d75226dc Merge branch 'master' of github.com:steampixel/simplePHPRouter 2021-01-14 20:46:14 +01:00
mrjk990
6a7ce39e72
Update Route.php
set flag 'u' out of $case_maters to avoid any problem when $case_maters set true
2021-01-14 19:55:48 +02:00
SteamPixel
dbb63d3043 Added return feature and arrow function example 2021-01-14 15:52:23 +01:00
mrjk990
c2cd96ab90
fix regex to support for non english letters
fix regex  to support for non english letters
like arabic
example:
// http://domain.com/dance/الرقص-العربي

Route::add( '/([\d\w\._]+)/([\p{L}\d\-]+)', function($cat, $slug) {
	// do something
});
2021-01-09 23:20:29 +02:00
SteamPixel
26e048cc88 Bugfix: Setup with subfolder works fine but doesn't match base path #23 2020-05-15 11:38:43 +02:00
SteamPixel
c871154b36 Corrected namespace 2020-01-14 12:55:52 +01:00
SteamPixel
7a3d28bacc Corrected namespace in folder structure 2020-01-14 12:03:03 +01:00
SteamPixel
560f8736c0 Moved Route.php to src folder 2020-01-14 11:44:26 +01:00