Top "Slim-3" questions

Slim 3 is the successor to Slim 2, a micro framework for PHP.

Slim 3 - how to get all get/ put/ post variables?

How I can get all get/ put/ post variables like in Slim 2 for Slim 3? Slim 2, $allGetVars = $app->request->…

slim slim-3 psr-7
PHP Slim Framework Create Controller

I am creating an API using the Slim framework. Currently I use a single file to create the route and …

php controller slim slim-3
Slim 3 Framework how to download file

I'm trying to download a file using the Slim 3 PHP Framework. Slim 2 was fairly straight forward, as I'm sure Slim 3 …

php download slim slim-3
Slim 3: how to access settings?

Before the Slim 3 is released, codes below work fine: settings.php, return [ 'settings' => [ 'displayErrorDetails' => true, 'modules' => [ 'core' =&…

php slim-3
Slim 3 getParsedBody() always null and empty

I'm am using the Slim Framework Version 3 and have some problems. $app-> post('/', function($request, $response){ $parsedBody = $…

php null slim slim-3
Slim 3 get current route in middleware

I want to get the name of the current I route in a middleware class. Previously (in Slim 2.*) you could …

php slim slim-3
How to access the $container within middleware class in Slim v3?

I've been reading that in Slim v2, $app was bound to the middleware class. I'm finding this not to be …

php slim slim-3
Unreasonable Errors on PHP Slim 3 Middleware

I am trying to use the ValidationErrorsMiddleware.php class as a middleware, so I added the following code to my …

php slim slim-3 respect-validation
Generating tokens with slim-jwt-auth

I'm using slim-jwt-auth to create token based authentication for a JSON API. The docs are very helpful, but one thing …

php jwt slim-3
Slim 3 Middleware Redirect

I want to check if a user is logged in. Therefor I have an Class witch returns true or false. …

php authentication slim slim-3