Releases: DeveloperMarius/simple-php-router
Version 5.1.0.6
Hello,
in this release I fixed the issue #8 that a request like https://example.com///test/test2 will throw a MaleformedUrlException.
Please watch out that when you define routes as ///test/test2 they will be reformatted to /test/test2 and when you request ///test/test2 internally it will match with /test/test.
I think this behavior is kind of dangerous, because requests to ///test/test2 and //test/test2 will match the route /test/test2 (Security and SEO wise).
I will look into this later.
Thanks to @Scantech-Val for submitting the issue #8
~ Marius
Version 5.1.0.5
Hey,
deprecated partial-groups with thanks @RealSocius for the shorthand added to groups in PR #7.
Before:
SimpleRouter::group([prefix => '/admin'], function ($language) {
...
});or
SimpleRouter::partialGroup('/admin', function ($language) {
...
});After:
SimpleRouter::group('/admin', function ($language) {
...
});~ Marius
Version 5.1.0.4
Hello,
I added the following functions to the response class:
- back() -> Will redirect the user to the url of the http-referer header
- raw(string $raw) -> prints raw text/ html content
- render(string $filename) -> prints the content of the file
- markdown(string $code, bool $save_mode = false) -> erusev/parsedown ist required for this feature. This function converts markup to html.
Version 5.1.0.3
Hey,
this is a cleanup release.
~ Marius
Version 5.1.0.2
Fixes
Version 5.1.0.1
Hey,
I added the packgist repo.
composer require developermarius/simple-router
~ Marius
Version 5.1.0.0
Hey 👋,
the version 5.1.0.0 only supports php >= 8 and brings the input validation from https://github.com/somnambulist-tech/validation with it.
Hope you like it.
~ Marius
Version 5.0.0.0
WARNING: This release is experimental. Upgrade with caution
I am releasing this v5 version for private purpose. It is based on all open PR in the main version of this repository and not an official release.
Documentation is following in feature releases.
~ Marius