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
get
and getObject
methods on Input
now supports filtering on multiple method-types when using the $method
parameter.getValue
and setValue
from InputFile
classes.Published by skipperbent almost 8 years ago
mcrypt_create_iv
function with random_bytes
if available (requires >=PHP7)setIndex
, setName
and setValue
methods to IInputItem
to allow for extendability.Published by skipperbent almost 8 years ago
requestMethod
is always lowercase in Request
class.Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
Input
class not being loaded in Request
class.Published by skipperbent almost 8 years ago
Input
and Input
-related classes/features.InputCollection
class.foreach
to for
to avoid using unnecessary traversables.BaseCsrfVerifier
now only matches on POST
, PUT
and DELETE
http-verbs.$type
option to get
method in Input
class.Published by skipperbent almost 8 years ago
HttpException
not thrown as NotFoundHttpException
.Published by skipperbent almost 8 years ago
request()
.$_GET
when all parameters are null when using getUrl
.foreach
to for
to avoid using traversables (performance).Response
class use Request
when parsing stuff.Published by skipperbent almost 8 years ago
getUrl
only adds $_GET
parameters is every other parameter is null when calling getUrl
.Published by skipperbent almost 8 years ago
/
.Published by skipperbent almost 8 years ago
//
when calling url()
on current route.Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
IRoute
interface for easier extensibility.Route
classes.RouteController
and RouteResource
route.getAlias
, hasAlias
, setAlias
).getRoutes
deprecated class from Route
class.RouterBase
to Router
.RouterBootManager
to interface IRouterBootManager
.merge
method to setSettings
in IRoute
related classes.merge
param to setSettings
method in IRoute
related classes.$getParams
is null
when calling getUrl
it will use $_GET
as default./
that could appear on urls on rare occasions.Many class-names and namespaces has changed in this version. Please read the release notes carefully before updating to this version.
Published by skipperbent almost 8 years ago
getUrl
method in SimpleRouter
class.Published by skipperbent almost 8 years ago
NOTE: This version has breaking changes. Please update with caution and review the pull-request before updating in production.
Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
Published by skipperbent almost 8 years ago
InputCollection
class and added get
method for easy access to values.RouterBase
.findRoute
method to RouterBase
.RouterBase
.RouterUrlTest
unit-test for testing route-urls.IRestController
that can be easily implemented in custom ResourceController
-classes.-
" instead of "_
" when using getHeader
method in Request
class./
" route sometimes returning "//
" as url.