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 almost 8 years ago
Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
ExceptionHandlers
loading in reverse order.Request
not working properly.Published by skipperbent almost 8 years ago
null
default parameter value to RouterController
and RouterResource
.Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
isset
each time a magic-property was called. Plus it should give a little more control over what data the properties actually contains.SimpleRouter::patch
and SimpleRouter::delete
methods.LoadableRoute
abstract class. This class contains basic functionality used by loadable routes (RouterRoute
, RouterController
, RouterRessource
etc).RouterGroup
and removed unused/old functionality.Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
loadMiddleware
method expecting RouterRoute
instead of RouterEntry
type.Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
defaultNamespace
variable from SimpleRouter::start()
and moved it to separate static method called setDefaultNamespace($namespace)
.IExceptionHandler
interface now takes $route
parameter as reference.$route
parameter to IMiddleware
interface.IControllerRoute
and ILoadableRoute
interfaces to easier group roues.as
not working when using alias in option array.Request
class.setBaseCsrfVerifier
and getBaseCsrfVerifier
methods in RouterBase
to getCsrfVerifier
and setCsrfVerifier
.self
constants to static
so they can be extended in the future.Please note that this is a somewhat big refactoring of simple-php-router. Please read the changelog carefully and use it in your development-environment - before deploying it in production, as there might be braking changes.
Router
- set your default namespace by calling the SimpleRouter::router()->setDefaultNamespace($namespace)
method.IExceptionHandler
with new updated properties.IMiddleware
with new updated properties.Published by skipperbent almost 8 years ago
SimpleRouter
constructor.Published by skipperbent almost 8 years ago
all
method in Input
class now returns correct array.all
method in Input
now supports json data.Published by skipperbent almost 8 years ago
all
method in Input
class now returns correct array.all
method in Input
class now supports json data.Published by skipperbent almost 8 years ago
SimpleRouter::request()
method.Published by skipperbent almost 8 years ago
RouterGroup
not pushing multiple middlewares properly.Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
getIp
method in Request
.RouterBase
class.Published by skipperbent almost 8 years ago