Top "Slim" questions

Slim for PHP is a RESTful micro framework for PHP 5 inspired by Sinatra.

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
How can i define global variables in slim framework

How can i define a global variable such that my current_user method can work were ever i want it …

php slim
CORS Errors only with 400 bad request react fetch request

I'm trying to make 'POST' request in react but i'm getting a few problems regarding CORS. I was just following …

javascript php reactjs cors slim
How do I write unit tests for a REST API built in Slim Framework?

I have an API built in Slim like this: $app->group('/'.$endpoint, function () use ($app, $endpoint) { $handler = …

rest phpunit slim
Always get 404 error in Slim Framework when omitting index.php in URL

I created a test hello world Slim app following instructions here. When I make this call I get a 404 error: …

php apache mod-rewrite slim
The annotation "@OneToMany" in property was never imported (Doctrine2)

I'm working with Doctrine 2 as an ORM for Slim 3 but I keep getting stuck in the object mapping section when …

php symfony doctrine-orm doctrine slim
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
Cant get JSON POST data submitted via Slim

Im using Postman (in Chrome) to test Slim calls but cant figure out how to get any of the posted …

php post slim
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
PHP Slim Framework: The requested URL was not found on this server

For one of the projects, i am using Slim Framework http://www.slimframework.com/ to create restful APIs in PHP. …

php .htaccess api rest slim