Releases: skipperbent/simple-php-router
Releases · skipperbent/simple-php-router
Version 1.2.8.1
- All headers in
Request
class now has lowercased keys. - Put request-method now also allow patch request methods.
- Fixed support for multiple middlewares using array.
- Fixed match and parameters-match methods not being merged when used on group.
Version 1.2.8
Notes
Middleware
abstract class has been changed to an interface called IMiddleware
- please change all references in your code to use the new interface.
Changelog
- Changed
Middleware
to interface - as it's easier to inherit and use in other frameworks/projects. RouterController
now loads method based on request-method (example:getMethodname
).- Changed references for old
Middleware
abstract class to use new interface. - Middleware must now be instance of
IMiddleware
. - Fixed null warnings.
Version 1.2.7.7
- Optimised
getRoute
method inRouterBase
for custom urls. - Added magic method getters and setters, and made
Request
class a singleton so applied configuration can be available from everywhere. - Made
RouterBase
use singletonHttpRequest
class.
Version 1.2.7.6
- Fixed Exceptions due to route null value.
Version 1.2.7.5
- Fixed custom regular expression matching after last release.
Version 1.2.7.4
- Middlewares are no longer loaded on invalid routes.
- Optimised middleware loading and routes.
Version 1.2.7.3
- Optimised router handling - router will now use the order provided when loading routes.
Version 1.2.7.2
- Fixed routes always matching
/show/{id}
when other routes are which should match.
Version 1.2.7.1
getUri()
method inRequest
class no longer appends "/".- Optimised
parseParameters
method inRouterRoute
class for regex matches.
Version 1.2.7
- When no parameter is received, router now returns
null
instead of empty string. json
method inResponse
class now stops response after execution.- Updated composer.json with correct autoload.