RESOLVED: Running out of memory when long URLs are passed in

I have a similar setup and it works without problems.

  • Add the composer autoloader
  • Make sure that you have created the correct .htaccess file(s) in the correct directories
  • Add at least one route
  • Make sure that the base path is set correctly
<?php
// public/index.php

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

use Slim\Factory\AppFactory;

$app = AppFactory::create();
//$app->setBasePath('/my-sub-directory');

$app->get('/api2/test/a/s/d/f', function ($request, $response) {
    return $response;
});

$app->run();