Commit Graph

126 Commits

Author SHA1 Message Date
Skylear
bf56160b33
Merge pull request #10 from splashsky/add-route-group
🌊 Add prefix route group + fixes
2021-07-16 07:53:45 -05:00
Splashsky
227e5edc06 🧼 Clean up request handling by treating basePath similar to other routes 2021-07-16 07:20:58 -05:00
Splashsky
3dd5ddc83e 🧴 Make constraint definitions smoother via trim 2021-07-16 07:17:40 -05:00
Splashsky
d0bef18c59 🧼 Clean up routing behavior with new trim method 2021-07-16 07:14:33 -05:00
Splashsky
1393e0face 🚧 Build new prefix group type 2021-07-16 07:06:37 -05:00
Splashsky
9a04c906a7 Add @return tags to comments 2021-07-16 04:43:30 -05:00
Skylear
c45aed8ec8
Merge pull request #7 from splashsky/improve-tokenizing-speed
⏱️ Replace preg_replace in tokenize with str_replace
2021-07-15 17:28:38 -05:00
Skylear
559196be54 ⏱️ Replace preg_replace in tokenize with str_replace 2021-07-15 17:26:28 -05:00
Skylear
236612125e
Merge pull request #6 from splashsky/allow-regex-constraints
No issues found in functionality after testing. Merging!
2021-07-15 16:56:20 -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
80a4769308 Remove -php from composer and readme 2021-07-15 15:00:36 -05:00
Skylear
11da4f3a64 Update README and remove examples for now 2021-07-15 14:40:58 -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
cbc4269e19 Small description update in composer.json 2021-07-14 16:17:14 -05:00
Skylear
5a19471b8f Refactor and reorganize entire repo 2021-07-14 16:16:33 -05:00
SteamPixel
91aec2d0bc Added known routes example to readme 2021-03-22 09:11:59 +01:00
SteamPixel
03b7de9fcc Merge branch 'known-routes' 2021-03-22 09:02:02 +01:00
SteamPixel
7218e53473 Added return test to navigation 2021-03-22 09:01:32 +01:00
SteamPixel
7ff0f40ec1 Added method and examples for known routes 2021-02-08 11:14:14 +01:00
SteamPixel
d7775a9fad Added example for injecting variables to local scope 2021-02-08 11:00:50 +01:00
SteamPixel
f245e21468 Added arrow function example and description 2021-02-08 10:54:37 +01:00
SteamPixel
b3e284ea15 Added arrow function example and description 2021-02-08 10:52:14 +01:00
SteamPixel
ae1c66b0f7 Removed newline 2021-02-08 10:27:43 +01:00
SteamPixel
cf50d67279 Removed outdated themes and layouts repo 2021-02-08 10:26:42 +01:00
SteamPixel
19cccadb14 Added release file to ignore list 2021-01-14 20:49:30 +01:00
SteamPixel
02d75226dc Merge branch 'master' of github.com:steampixel/simplePHPRouter 2021-01-14 20:46:14 +01:00
SteamPixel
7358af8887
Merge pull request #39 from mrjk990/patch-2
set flag 'u' out of $case_maters to avoid any problem when $case_maters set true
2021-01-14 20:42:57 +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
SteamPixel
66a6bbae95 Merge branch 'master' of github.com:steampixel/simplePHPRouter 2021-01-14 15:07:27 +01:00
SteamPixel
08538d9097
Merge pull request #37 from mrjk990/patch-1
fix regex  to support for non english letters
2021-01-14 15:07:11 +01:00
SteamPixel
7e239af04d Added non english routes to example 2021-01-14 15:07:02 +01:00
SteamPixel
542d4330e8 Added non english route example 2021-01-14 14:54:43 +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
6168bc9ab5
Merge pull request #35 from beopuppy/master
Add web.config (IIS) rewrite rule
2020-10-19 11:05:59 +02:00
Markus Geiger
1c52029ca0 Add web.config (IIS) rewrite rule
Update readme with windows test setup.
2020-10-16 12:01:27 -04:00
SteamPixel
6994d6c93e Corrected some wired PHP comments 2020-09-24 08:54:38 +02:00
SteamPixel
7fbe414965 Added include example 2020-09-07 10:21:29 +02:00
SteamPixel
ce7225c288
Added description of required skills 2020-09-07 10:07:46 +02:00
SteamPixel
cda1b9b36f
Merge pull request #29 from mzaini30/patch-1
Change comment (from POST to GET)
2020-07-23 11:55:07 +02:00
Zen
c0cd53ff67
Change comment (from POST to GET) 2020-07-23 17:38:11 +08:00
SteamPixel
18ad2e50cb Merge branch 'master' of github.com:steampixel/simplePHPRouter 2020-05-15 12:14:10 +02:00
SteamPixel
19ab110e79 Updated some information 2020-05-15 12:09:41 +02:00
SteamPixel
41e85d3500 Added a basepath variable to the demo file 2020-05-15 12:08:23 +02:00