Skip to content

Releases: DeveloperMarius/simple-php-router

Version 5.1.0.6

02 Dec 13:35

Choose a tag to compare

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

24 Nov 23:32

Choose a tag to compare

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

24 Nov 12:33

Choose a tag to compare

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

15 Nov 09:17

Choose a tag to compare

Hey,

this is a cleanup release.

~ Marius

Version 5.1.0.2

15 Nov 08:14

Choose a tag to compare

Version 5.1.0.1

15 Nov 07:41

Choose a tag to compare

Hey,

I added the packgist repo.

composer require developermarius/simple-router

~ Marius

Version 5.1.0.0

14 Nov 11:57

Choose a tag to compare

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

20 Feb 15:17

Choose a tag to compare

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