Commit Graph

118 Commits

Author SHA1 Message Date
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
SteamPixel
f9f3522399 Added a basepath variable to the demo file 2020-05-15 12:02:26 +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
48fa409e7f Added local dev environment to ignore list 2020-05-15 10:40:12 +02:00
SteamPixel
26e9ec784f
Update composer.json
Updated author information
2020-01-15 09:18:00 +01:00
SteamPixel
d3713a3aee
Merge pull request #17 from ImMaax/master
Added myself to composer.json
2020-01-15 09:15:46 +01:00
SteamPixel
d8bb60d8dc
Update README.md
Thought the mention of "single class" is important :-)
2020-01-15 09:12:58 +01:00
Max
921e85f2b8
Added my homepage 2020-01-14 15:24:28 +01:00
Max
93276e0ae2
Added myself to composer.json 2020-01-14 15:17:35 +01:00