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 9 years ago
Published by skipperbent almost 9 years ago
Published by skipperbent almost 9 years ago
Published by skipperbent almost 9 years ago
getRoute
method.{id?}
.Published by skipperbent almost 9 years ago
getRoute
method.{id?}
.Published by skipperbent almost 9 years ago
/path/{param}/path
.Published by skipperbent almost 9 years ago
getIsSecure
method to Request
class.Published by skipperbent almost 9 years ago
Published by skipperbent almost 9 years ago
RouterEntry
not matching routes with multiple arguments.Published by skipperbent almost 9 years ago
Published by skipperbent almost 9 years ago
Request
class now has lowercased keys.Published by skipperbent almost 9 years ago
Middleware
abstract class has been changed to an interface called IMiddleware
- please change all references in your code to use the new interface.
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
).Middleware
abstract class to use new interface.IMiddleware
.Published by skipperbent almost 9 years ago
getRoute
method in RouterBase
for custom urls.Request
class a singleton so applied configuration can be available from everywhere.RouterBase
use singleton HttpRequest
class.Published by skipperbent almost 9 years ago
Published by skipperbent about 9 years ago
Published by skipperbent about 9 years ago
Published by skipperbent about 9 years ago
Published by skipperbent about 9 years ago
/show/{id}
when other routes are which should match.Published by skipperbent about 9 years ago
getUri()
method in Request
class no longer appends "/".parseParameters
method in RouterRoute
class for regex matches.Published by skipperbent about 9 years ago
null
instead of empty string.json
method in Response
class now stops response after execution.