Skip to content

Releases: DeveloperMarius/simple-php-router

Version 5.1.0.16

24 Mar 15:30

Choose a tag to compare

Hello,

this release fixes the problem that on apache webservers the Authorization header isn't returned by the $_SERVER value.

https://stackoverflow.com/questions/2902621/fetching-custom-authorization-header-from-incoming-php-request#answer-2902713

~ Marius

Version 5.1.0.15

20 Mar 22:54

Choose a tag to compare

Hello,

this release adds an event called after input validations ran.

~ Marius

Version 5.1.0.14

24 Feb 03:29

Choose a tag to compare

Hey,

quick Bug fix. Use first key for parsing when is marked as nested (via validator) but default is used.

~ Marius

Version 5.1.0.13

24 Feb 02:32

Choose a tag to compare

Hey,

this release contains a fix for nested key value array validation & parsing.

~ Marius

Version 5.1.0.12

21 Feb 21:26

Choose a tag to compare

Hello,

this release contains deep array parsing & array input support.

~ Marius

Version 5.1.0.9

15 Feb 15:32

Choose a tag to compare

Hello,

this release contains the fix #13 by @xJuvi, thank you.

I also added a function that loades all routes attached with the Route Attribute from a controller class:

#[RouteGroup('/group')]
class DummyLoadableController{

    #[Route(Route::GET, '/test2/endpoint')]
    public function method1(){
        return 'method1';
    }

    #[Route(Route::POST, '/test/url'), ValidatorAttribute('fullname', 'string', 'min:5|max:20'), ValidatorAttribute('company', 'string')]
    public function method2(){
        return 'method2';
    }
}

and load the routes where you want:
TestRouter::loadRoutes(DummyController::class);
The RouteGroup acts like a normal route group with a prefix and settings.

~ Marius

Version 5.1.0.11

20 Feb 02:13

Choose a tag to compare

Hello,

this release contains deep array parsing support.

~ Marius

Version 5.1.0.10

15 Feb 22:24

Choose a tag to compare

Hey,

added option to pass data source methods to all() and values() functions.

~ Marius

Version 5.1.0.8

09 Feb 19:27

Choose a tag to compare

Hello,

I added compatibility for receiving nested array data when using requireAttributeValues() in routes.

~ Marius

Version 5.1.0.7

24 Jan 09:51

Choose a tag to compare

Hey,

  1. fixed an issue reported by @compilekaiten in #11. When using rewriteCallback in a middleware echo callback was not detected (Worked only with return). This behavior was fixed.
  2. fixed deprecation notice for php 8.2 thanks to @jeremie-arcidiacono in #10

Thanks for the help!

~ Marius