# Could not detect any PSR-17 ResponseFactory implementations

**URL:** <https://discourse.slimframework.com/t/could-not-detect-any-psr-17-responsefactory-implementations/5707>\
**Category:** Questions\
**Created:** [October 5, 2023, 1:05am UTC](https://discourse.slimframework.com/t/could-not-detect-any-psr-17-responsefactory-implementations/5707 "2023-10-05T01:05:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jontue](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jontue](https://discourse.slimframework.com/u/Jontue)\
**Post date:** [October 5, 2023, 1:05am UTC](https://discourse.slimframework.com/t/could-not-detect-any-psr-17-responsefactory-implementations/5707/1 "2023-10-05T01:05:04Z")

</div>

Here is the code that I used and site url [https://1usda.technology/rest.php](https://1usda.technology/rest.php)

```auto
<?php
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;

require __DIR__. '/../vendor/autoload.php';

$app = AppFactory::create();

$app->get('/', function (Request $request, Response $response, $args) {
    $response->getBody()->write("Hello world!");
    return $response;
});

$app->run()
?>

```

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [October 5, 2023, 7:08am UTC](https://discourse.slimframework.com/t/could-not-detect-any-psr-17-responsefactory-implementations/5707/2 "2023-10-05T07:08:47Z")

</div>

Hi!

Take a quick look into the documentation: [Step 3: Install a PSR-7 Implementation and ServerRequest Creator](https://www.slimframework.com/docs/v4/start/installation.html#step-3-install-a-psr-7-implementation-and-serverrequest-creator) and it should be clear.

I also would mention that the URL like `rest.php` will not work, because the router expects a “pretty” URL. Read more: [Slim 4 - Tutorial](https://odan.github.io/2019/11/05/slim4-tutorial.html).
