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 7 years ago
Published by skipperbent almost 7 years ago
Input
class and removed old, unused functionality.Published by skipperbent almost 7 years ago
InputFile
class.Published by skipperbent almost 7 years ago
InputFile
not setting file-name properly.InputFile
not setting the correct index whenCookieTokenProvider
and ITokenProvider
classes.Uri
class and small optimisations.SimpleRouter::addDefaultNamespace
in setRewriteRoute
method as it wasNOTE: This release contains changes that might affect your project.
Please read the release-note carefully before updating.
Due to new token-provider changes the CsrfToken
class has been moved to Pecee\Http\Security\CookieTokenProvider
.
Any references to SimpleRouter::router()->getCsrfVerifier()->getToken()
should be replaced with SimpleRouter::router()->getCsrfVerifier()->getTokenProvider()->getToken()
.
Published by skipperbent almost 7 years ago
Published by skipperbent almost 7 years ago
Published by skipperbent almost 7 years ago
Published by skipperbent about 7 years ago
Published by skipperbent about 7 years ago
Published by skipperbent about 7 years ago
csrf_token()
helper function in helpers.php
.Published by skipperbent about 7 years ago
RouterPartialGroupTest
) unit test.Published by skipperbent about 7 years ago
response()->json()
to accept array
or objects implementing the JsonSerializable
interface (issue: #284 - thanks @adamkelso-rg)Published by skipperbent about 7 years ago
response()->json()
to accept array
or objects implementing the JsonSerializable
interface (issue: #284 - thanks @adamkelso-rg)Published by skipperbent about 7 years ago
response()->json()
to accept array
or objects implementing the JsonSerializable
interface (issue: #284 - thanks @adamkelso-rg)Published by skipperbent about 7 years ago
urldecode
is now used on all urls in Uri
class (issue: #268)Published by skipperbent about 7 years ago
Request
class now use the unencoded-url
header if available to avoid any encoding issues on IIS (issue: #268 - thanks @jatubio)Published by skipperbent about 7 years ago
Published by skipperbent about 7 years ago
helpers.php
file to library./
if all parameters are empty in $router->getUrl
method.Uri
class which is now used to parse urls within the library.Note: this release contains breaking changes. We recommend reading this section carefully before updating in a production environment.
Request
class now uses the Uri
class to handle urls. This is done to ensure that unicode encoding etc. are always parsed correctly, but also adds additional features like getting querystring, fragments etc. from a particular url.
Calling $router->getUrl
with empty parameters (example: url('', '')
) now returns root path /
.
request()->getUri()
should be changed to request()->getUri()->getPath()
.Published by skipperbent about 7 years ago
url
still parsing current parameters./
when calling findUrl
on routes with the first parameter optional.Published by skipperbent about 7 years ago
$parameter
argument in findUrl
method now supports both string
, array
and null
values to avoid any confusion. url()
can now be called like this if only one parameter is present url('method', 'parameter');
and url('method', ['parameter1', 'parameter2']);
for multiple parameters.
Using return value in callbacks now displays the value correctly (issue: #257)
Added unit-tests for issue: #257