Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
Published by skipperbent about 9 years ago
getRoute
method on some rare occasions.Published by skipperbent about 9 years ago
Note: Re-released as version 1.2.6.1 as the last version didn't contain the fix
getRoute
method will now per default add the parameters array if provided instead.Published by skipperbent about 9 years ago
getRoute
method in SimpleRouter
not being static.Published by skipperbent about 9 years ago
getUserAgent
and getReferer methods to Request
class.ip
method to Response
class.getInput
method to return request items in Response
class.Published by skipperbent about 9 years ago
RouterException
in BaseCsrfVerifier
to TokenMismatchException
.Published by skipperbent about 9 years ago
Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.
For example when posting to a method - the name of the method no longer has to be named postSomething()
.
CsrfToken
class.Request
class.BaseCsrfVerifier
class in RouterBase
and SimpleRouter
./
in beginning of url in getRoute
when route does not exist.Published by skipperbent about 9 years ago
Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.
For example when posting to a method - the name of the method no longer has to be named postSomething()
.
CsrfToken
class.Request
class.BaseCsrfVerifier
class in RouterBase
and SimpleRouter
.Published by skipperbent about 9 years ago
Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.
For example when posting to a method - the name of the method no longer has to be named postSomething()
.
CsrfToken
class.Request
class.BaseCsrfVerifier
class in RouterBase
and SimpleRouter
.Published by skipperbent about 9 years ago
RouterRessources
has been renamed to RouterResource
.SimpleRouter::ressource
has been renamed to SimpleRouter::resource
.Response
class.getPassword()
method for basic auth password in Response
class.RouterException
with "Method not allowed" when using a unsupported request method.RouterBase
class.RouterRoute
.Ressource
to Resource
).SimpleRouter
class.getRoute()
method.Published by skipperbent about 9 years ago
RouterRessources
has been renamed to RouterResource
.SimpleRouter::ressource
has been renamed to SimpleRouter::resource
.Response
class.getPassword()
method for basic auth password in Response
class.RouterException
with "Method not allowed" when using a unsupported request method.RouterBase
class.RouterRoute
.Ressource
to Resource
).SimpleRouter
class.getRoute()
method.Published by skipperbent about 9 years ago
RouterRessources
has been renamed to RouterResource
.SimpleRouter::ressource
has been renamed to SimpleRouter::resource
.RouterException
with "Method not allowed" when using a unsupported request method.RouterBase
class.RouterRoute
.Ressource
to Resource
).SimpleRouter
class.getRoute()
method.Published by skipperbent about 9 years ago
match
method to RouterEntry
to match specific regular expression on url.GetRoute
now returns provided controller and method if no match is found.Published by skipperbent about 9 years ago
getRoute
method.Response
and Request
classes.Published by skipperbent about 9 years ago
/something?
.where
method in RouterEntry
class to support custom regular expression matches on parameters.RouterRoute
class.IRouteEntry
class.Published by skipperbent about 9 years ago
/something?
.where
method in RouterRoute
class to support custom regular expression matches on parameters.RouterRoute
class.IRouteEntry
class.Published by skipperbent about 9 years ago
RouterGroup
in when looping through controllers in controllerUrlMap
.