Simon Sessingø
75566dc2ba
Bugfixes
2016-11-16 15:15:51 +01:00
Simon Sessingø
8478899eb6
Bugfixes
2016-11-16 14:30:19 +01:00
Simon Sessingø
93562bd758
Csrf bugfixes
2016-11-15 08:46:14 +01:00
Simon Sessingø
9c413a3c53
Bugfixes
2016-11-15 06:38:39 +01:00
Simon Sessingø
669d318a12
Documentation updates
2016-11-15 05:57:58 +01:00
Simon Sessingø
9513e38009
Fixed to unit tests
2016-11-15 05:57:04 +01:00
Simon Sessingø
a13bcd4768
Updated demo project + documentation
2016-11-15 05:48:08 +01:00
Simon Sessingø
83c73a4240
Callback, faking route and documentation updates
2016-11-15 05:44:24 +01:00
Simon Sessingø
bc14790a67
Updated documentation
2016-11-15 03:55:28 +01:00
Simon Sessingø
d5e7a13d89
Development + bugfixes
2016-11-15 03:43:26 +01:00
Simon Sessingø
6de0700e17
Bugfixes
...
- Removed debugging constructor.
- Updated documentation.
2016-11-15 00:11:57 +01:00
Simon Sessingø
28ffa30d3e
Development
...
- all() in Input class now returns correct array.
- all() now supports json data.
- Minor bugfixes.
2016-11-08 18:21:21 +02:00
Simon Sessingø
540ebb31ac
Updated documentation
2016-11-07 05:48:02 +01:00
Simon Sessingø
48317ded7a
Updated documentation
2016-11-07 05:40:32 +01:00
Simon Sessingø
28c3370b67
Fixed group not adding multiple middlewares
2016-11-07 04:55:43 +01:00
Simon Sessingø
7ee42c98a7
Updated documentaiton
2016-11-07 04:45:18 +01:00
Simon Sessingø
8740db9582
Development
...
- Isolated Http classes from router.
- Removed getInstance from Request object - current router request should now be obtained through SimpleRouter::request().
- Fixed broken test cases.
- Added test for regular expression match.
- Updated documentation to reflect changes.
- Added more helper examples to documentation.
- Added helpers to demo-project.
- Optimisations.
2.0
2016-11-07 04:40:28 +01:00
Simon Sessingø
2d57b45c7b
Fixed urls not being visible
2016-11-06 09:04:05 +01:00
Simon Sessingø
98cc8504d4
Development
...
- Group only loads if prefix matches (if any).
2016-11-06 08:13:47 +01:00
Simon Sessingø
035a5b1629
Development
...
- Added support for cloudflare when using getIp method in Request.
- Fixed undefined variable notice in RouterBase class.
2016-11-05 23:07:14 +01:00
Simon Sessingø
832aff0358
Optimised for cli-usage
2016-10-28 07:40:51 +02:00
Simon Sessingø
43e05ad821
Minor optimisations
2016-10-27 19:15:38 +02:00
Simon Sessingø
2fd32868c2
Optimisations and bugfixes
2016-10-27 17:06:05 +02:00
Simon Sessingø
e51b72f0e0
Development
...
- Changed from http_build_query to custom solution as it doesn't support querystrings with "%" on some php versions.
2016-10-27 16:44:35 +02:00
Simon Sessingø
3b5e2aee9d
Added credits
2016-10-20 08:37:39 +02:00
Simon Sessingø
27ba532b2d
Updated documentation
2016-10-20 08:36:50 +02:00
Simon Sessingø
a8620cbc70
Updates
...
- Simplified exception-handling (see demo project for examples).
- Optimised sample-project.
- Optimised and added further unit-tests.
- Optimised and bugfixes.
2016-10-20 08:31:21 +02:00
Simon Sessingø
4e054dccf5
Updated documentation
2016-10-04 02:51:37 +02:00
Simon Sessingø
e7dfbb159c
Updated documentation
2016-10-04 02:50:36 +02:00
Simon Sessingø
8c5a5327d1
Update documentation
2016-10-04 02:47:28 +02:00
Simon Sessingø
3c9a675f25
Optimised middleware load order
2016-09-28 12:29:30 +02:00
Simon Sessingø
dfccd99f2f
Automatically push middlewares if multiple in nested group.
2016-09-28 12:21:23 +02:00
Simon Sessingø
980a4e9b6a
Updated documentation and added demo-project.
2016-09-26 14:37:54 +02:00
Simon Sessingø
fab0d0641c
Allow for default parameters (including A-Z, a-z, 0-9 and "-") when parsing parameters in RouterResource.
2016-06-14 22:20:05 +02:00
Simon Sessingø
4169716f87
Bugfix
...
- Fixed some routes with ending slash not matching on when using Ressource.
2016-06-04 18:44:33 +02:00
Simon Sessingø
53e5b5362f
Development
...
- Enhanced regular expression used for matching parameters.
- Added basic unit-tests for parameters.
- Fixed typos in PHP-docs and other minor optimizations.
2016-06-04 18:20:46 +02:00
Simon Sessingø
6780b24e59
Development
...
- Optimized the way parameters are parsed as a result, simple-router now supports routes like `/{param1}-{param2}.json`.
- Replaced reg-ex for parameter-matching with `\w` which means that default parameter matching on routes now include `_` (underscore) per default.
- Simplified `MiddlewareTest` class.
2016-06-04 15:12:04 +02:00
Simon Sessingø
b540c01650
Update README.md
2016-06-03 00:02:45 +02:00
Simon Sessingø
eb8832beec
Added setValue method to InputItem class.
2016-05-04 13:35:23 +02:00
Simon Sessingø
eeafcb7862
Added exist method to Input class.
2016-05-03 07:20:52 +02:00
Simon Sessingø
1a9351c690
- Fixed notifications if included in projects running in command-line where certain variables aren't available.
2016-05-01 00:02:42 +02:00
Simon Sessingø
f98e5ac59d
- Optimized handleException method in RouterBase.
2016-04-23 10:52:51 +02:00
Simon Sessingø
a2dbf4149b
- Added route to ExceptionHandler so Middlewares can be loaded.
2016-04-23 10:50:56 +02:00
Simon Sessingø
ba736b47a3
- Removed support from middlewares on each load - this should be implemented in custom Router instead.
...
- Updated documentation to reflect how to implement Middlewares loaded on each route.
2016-04-22 15:37:27 +02:00
Simon Sessingø
6ab1200fd5
- Return $item if it's an array in get method in Input class.
2016-04-22 14:29:21 +02:00
Simon Sessingø
67a00c6800
- Optimized Input class.
...
- Input class now returns array instead of InputItem instance when object is of type array.
- Optimized key behavior in Input class.
- Optimized arrayToParams method in RouterBase class.
- Added getMergableSettings method to RouterGroup to avoid middleware merge; as they will already be loaded.
2016-04-22 12:55:24 +02:00
Simon Sessingø
1420203149
- Added custom ExceptionHandler example to documentation.
...
- Fixed reference to request() helper in Input class.
- Changed RouterBase handleException method to support 404-exceptions.
2016-04-21 07:16:29 +02:00
Simon Sessingø
f7af53a9af
- Optimized Input class to ensure that InputFile items are always returned as object as they contain no value.
2016-04-19 14:48:26 +02:00
Simon Sessingø
6b8351f1b8
- Input class no longer tries to search for parameter in FILE or POST if it's not a postback.
2016-04-19 02:08:14 +02:00
Simon Sessingø
eb3ddf2bf7
[OPTIMISATION] Optimized get method in Input class to trim value and return default value if empty.
2016-04-16 21:34:22 +02:00