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 6 years ago
__invoke
methods (issue: #429)PUT
requests.BaseCsrfVerifier
expects the field name to be "csrf-token" (issue: #432)Published by skipperbent about 6 years ago
Published by skipperbent about 6 years ago
Published by skipperbent over 6 years ago
Input::all()
returning empty array when posting json- data (issue #415 - thanks @mtaylor456)Published by skipperbent over 6 years ago
NotFoundHttpException
.REQUEST_TYPE_HEAD
to Route
class.Published by skipperbent over 6 years ago
all
method in InputHandler
.Published by skipperbent over 6 years ago
SimpleRouter::redirect
method.InputHandler
for better description.InputHandler
when retrieving collections.InputHandler
(get, post).Methods in InputHandler
has changed to provide better support for object-types.
Published by skipperbent over 6 years ago
prependUrl
method to LoadableRoute
class.Published by skipperbent over 6 years ago
exists
method in InputHandler
returning incorrect value.Published by skipperbent over 6 years ago
hasParam
not working returning expected value in Url
class.Url
class.removeParam
method in Url
class.removeParams
method to Url
class for removal of multiple params.Published by skipperbent over 6 years ago
getName
method in LoadableRoute
class can contain nullable value.helpers.php
.Published by skipperbent over 6 years ago
getError
in InputFile
returning string instead of int.Published by skipperbent over 6 years ago
Url
not outputting correct class when used in json_encode.IInputItem
being too strict about strings which may be nullable.Published by skipperbent over 6 years ago
InputHandler
class.Published by skipperbent over 6 years ago
Published by skipperbent over 6 years ago
Published by skipperbent over 6 years ago
input
helper function.InputHandler
class.Published by skipperbent over 6 years ago
$methods
argument not properly passed in InputHandler
class.Published by skipperbent over 6 years ago
getValue
method in InputHandler
class.Published by skipperbent over 6 years ago
WARNING: This release is experimental. Upgrade with caution.
request()->getInput()
renamed to request()->getInputHandler()
.\Pecee\Http\Input\Input
class renamed to Pecee\Http\Input\InputHandler
.contains($value)
method to Url
class.indexOf($value)
method to Url
class.SimpleRouter::request()->getLoadedRoutes()
.setLoadedRoute($route)
method from Request
class and replaced it with addLoadedRoute($route)
.SimpleRouter::startDebug()
.Router
class.debug($message, ...$args)
, getDebugLog()
and setDebugEnabled($bool)
methods to Router
class.Url
class. When calling url
you can now use the methods on the Url
class to filter params, get relative/absolute url etc. See documentation for more info.helpers.php
and helpers example in documentation.getUrlCopy
to Request
class, used to clone the current route (to keep domain etc.)setUrl
in Request
are now strict and requires Url
object and no longer accepts strings.hasRewrite
property to hasPendingRewrite
in Request
class.hasRewrite
and setHasRewrite
methods to hasPendingRewrite
and setHasPendingRewrite
in Request
class.get
method to getValue
in InputHandler
class.getObject
to get
and removed $defaultValue
argument in InputHandler
class.InputHandler
class.$token
not being proper string in BaseCsrfVerifier
when token is not found.setcookie
in CookieTokenProvider
for improved security.$router
parameter to boot
method in IRouterBootManager
which allows for further manipulation of the router within the bootmanager.$processingRoute
property to $isProcessingRoute
in Router
class.reset
method not resetting CSRF-verifier in Router
class.arrayToParams
helper-method from Router
to Url
class.addEventHandler
method to SimpleRouter
class.Pecee\SimpleRouter\Handler\CallbackExceptionHandler
to Pecee\SimpleRouter\Handlers\CallbackExceptionHandler
.Pecee\SimpleRouter\Handler\IExceptionHandler
to Pecee\SimpleRouter\Handlers\IExceptionHandler
.ClassLoader
class and IClassLoader
interface.