# Latest

**URL:** https://discourse.slimframework.com/latest.md

[Latest](https://discourse.slimframework.com/latest.md) · [Categories](https://discourse.slimframework.com/categories.md)

---

## [Welcome to the Slim Framework discussion forum](https://discourse.slimframework.com/t/welcome-to-the-slim-framework-discussion-forum/8)

<div class="topic-metadata">

**Author:** [@system](https://discourse.slimframework.com/u/system)\
**Replies:** 0\
**Last updated:** [March 10, 2016, 2:36pm UTC](https://discourse.slimframework.com/t/welcome-to-the-slim-framework-discussion-forum/8 "2016-03-10T14:36:28Z")

</div>

This forum is for discussion of Slim Framework. Please ask any questions about how to use Slim in the Questions category. Useful links: Documenation IRC: #slimphp on Freenode Slack (Signup here) GitHub

---

## [Task/Cronjob Scheduler](https://discourse.slimframework.com/t/task-cronjob-scheduler/6218)

<div class="topic-metadata">

**Author:** [@nemanja](https://discourse.slimframework.com/u/nemanja)\
**Replies:** 2\
**Last updated:** [September 19, 2026, 8:30am UTC](https://discourse.slimframework.com/t/task-cronjob-scheduler/6218 "2026-09-19T08:30:09Z")

</div>

Hi everyone, Just wanted to share a project I’m working on. It’s called Tick, a framework-agnostic PHP 8.2+ task/cron scheduler. Can be used standalone or with any framework. As a Slim user myself, it’s built so it can …

---

## [Server error when the server starts first time](https://discourse.slimframework.com/t/server-error-when-the-server-starts-first-time/6251)

<div class="topic-metadata">

**Author:** [@cydevhp](https://discourse.slimframework.com/u/cydevhp)\
**Replies:** 2\
**Last updated:** [September 16, 2026, 7:47pm UTC](https://discourse.slimframework.com/t/server-error-when-the-server-starts-first-time/6251 "2026-09-16T19:47:28Z")

</div>

Hello, i’m new in Slim Framework and i have a question about the slim-skeleton template/base project and the dependencies. When i start the app in local env, the first request always throw a server error by default erro…

---

## [Slim4 with opencode assisted development](https://discourse.slimframework.com/t/slim4-with-opencode-assisted-development/6223)

<div class="topic-metadata">

**Author:** [@tj\_gumis](https://discourse.slimframework.com/u/tj_gumis)\
**Replies:** 2\
**Last updated:** [July 7, 2026, 6:41pm UTC](https://discourse.slimframework.com/t/slim4-with-opencode-assisted-development/6223 "2026-07-07T18:41:37Z")

</div>

Guys, since I’m currently looking for a job, I recently received a recruitment task that required using CodeIgniter4 to build a few features. Since I dealt with CodeIgniter3 a loooooooong tiiiiiiiime ago (now they only …

---

## [Bind a command bus to a route instead of just a single command](https://discourse.slimframework.com/t/bind-a-command-bus-to-a-route-instead-of-just-a-single-command/6243)

<div class="topic-metadata">

**Author:** [@ollehar](https://discourse.slimframework.com/u/ollehar)\
**Replies:** 1\
**Last updated:** [June 30, 2026, 7:09pm UTC](https://discourse.slimframework.com/t/bind-a-command-bus-to-a-route-instead-of-just-a-single-command/6243 "2026-06-30T19:09:45Z")

</div>

Hello! Has anyone considered using a command bus with SlimPHP? Instead of binding every route to a single command, you’d bind it to the command bus, with one or more initial commands added to it. The benefit of always h…

---

## [Implicitly marking parameter $method as nullable is deprecated](https://discourse.slimframework.com/t/implicitly-marking-parameter-method-as-nullable-is-deprecated/6233)

<div class="topic-metadata">

**Author:** [@mirrrjr](https://discourse.slimframework.com/u/mirrrjr)\
**Replies:** 1\
**Last updated:** [June 25, 2026, 6:44pm UTC](https://discourse.slimframework.com/t/implicitly-marking-parameter-method-as-nullable-is-deprecated/6233 "2026-06-25T18:44:39Z")

</div>

I downloaded and ran slim-framework, and got an error message: { “statusCode”: 500, “error”: { “type”: “SERVER\_ERROR”, “description”: “ERROR: DI\\Definition\\Resolver\\ParameterResolver::resolveParameters(): Implicitly…

---

## [How Can I Handle Large File Downloads and ZIP Streaming in Slim 4 Without Output Buffering Issues?](https://discourse.slimframework.com/t/how-can-i-handle-large-file-downloads-and-zip-streaming-in-slim-4-without-output-buffering-issues/6239)

<div class="topic-metadata">

**Author:** [@Johnadam](https://discourse.slimframework.com/u/Johnadam)\
**Replies:** 1\
**Last updated:** [June 25, 2026, 6:42pm UTC](https://discourse.slimframework.com/t/how-can-i-handle-large-file-downloads-and-zip-streaming-in-slim-4-without-output-buffering-issues/6239 "2026-06-25T18:42:37Z")

</div>

I’m working with Slim 4 and need to deliver large files, including dynamically generated ZIP archives, to users efficiently. While testing, I’ve encountered concerns related to output buffering, memory consumption, and r…

---

## [A ready-to-use FrankenPHP Docker image for Slim Framework projects](https://discourse.slimframework.com/t/a-ready-to-use-frankenphp-docker-image-for-slim-framework-projects/6207)

<div class="topic-metadata">

**Author:** [@LLEGAZ](https://discourse.slimframework.com/u/LLEGAZ)\
**Replies:** 4\
**Last updated:** [May 11, 2026, 1:47pm UTC](https://discourse.slimframework.com/t/a-ready-to-use-frankenphp-docker-image-for-slim-framework-projects/6207 "2026-05-11T13:47:45Z")

</div>

Hello Slim Community, After some days fumbling my way through to adapt an existing Symfony Docker setup into a PHP-agnostic Docker image, I’m happy to share frankenphp-slim — a production-ready base for Slim Framework …

---

## [Custom fatal error handler in SLIM4](https://discourse.slimframework.com/t/custom-fatal-error-handler-in-slim4/6205)

<div class="topic-metadata">

**Author:** [@inf3rno](https://discourse.slimframework.com/u/inf3rno)\
**Replies:** 2\
**Last updated:** [April 4, 2026, 8:12pm UTC](https://discourse.slimframework.com/t/custom-fatal-error-handler-in-slim4/6205 "2026-04-04T20:12:32Z")

</div>

I am developing a REST API and want to support only JSON responses. I added a custom error handler this way: $errorMiddleware = $app-\>addErrorMiddleware($config\['error'\]\['debug'\], true, $config\['error'\]\['log'\]\['communic…

---

## [War in Ukraine just now](https://discourse.slimframework.com/t/war-in-ukraine-just-now/5194)

<div class="topic-metadata">

**Author:** [@EugeneM](https://discourse.slimframework.com/u/EugeneM)\
**Replies:** 121\
**Last updated:** [February 24, 2026, 8:14am UTC](https://discourse.slimframework.com/t/war-in-ukraine-just-now/5194 "2026-02-24T08:14:35Z")

</div>

I’m very sorry Dear Slim PHP community. I’m citizen of the Ukraine. I live in Kharkiv (it’s Ukrainian pronunciation, Kharkov - it’s russian pronunciation). Yes. There really is a war here. Russian troops came close to t…

---

## [Companies that use Slim](https://discourse.slimframework.com/t/companies-that-use-slim/6184)

<div class="topic-metadata">

**Author:** [@thierryler](https://discourse.slimframework.com/u/thierryler)\
**Replies:** 12\
**Last updated:** [February 2, 2026, 10:48pm UTC](https://discourse.slimframework.com/t/companies-that-use-slim/6184 "2026-02-02T22:48:02Z")

</div>

Hello, I’m going to give a presentation about Slim in December to the Paris PHP group. I’d like to list a selection of companies that use Slim. Do you know where I can find that?

---

## [How to use roadrunner server with slimphp?](https://discourse.slimframework.com/t/how-to-use-roadrunner-server-with-slimphp/6196)

<div class="topic-metadata">

**Author:** [@joyful\_elephant](https://discourse.slimframework.com/u/joyful_elephant)\
**Replies:** 1\
**Last updated:** [January 29, 2026, 4:31pm UTC](https://discourse.slimframework.com/t/how-to-use-roadrunner-server-with-slimphp/6196 "2026-01-29T16:31:05Z")

</div>

I want to use roadrunner as PHP application server for slimphp. Has anyone used it before?

---

## [Slim4 Foto Kit demo project](https://discourse.slimframework.com/t/slim4-foto-kit-demo-project/6152)

<div class="topic-metadata">

**Author:** [@EugeneM](https://discourse.slimframework.com/u/EugeneM)\
**Replies:** 56\
**Last updated:** [January 17, 2026, 10:45am UTC](https://discourse.slimframework.com/t/slim4-foto-kit-demo-project/6152 "2026-01-17T10:45:46Z")

</div>

Dear Slim PHP community. I am glad to present you my humble work. I made a demo project, which is based on Slim PHP 4 Your remarks and proposals are welcome. Thank you.

---

## [Help with User/Password in Slim Project](https://discourse.slimframework.com/t/help-with-user-password-in-slim-project/6109)

<div class="topic-metadata">

**Author:** [@ivsauer](https://discourse.slimframework.com/u/ivsauer)\
**Replies:** 2\
**Last updated:** [November 21, 2025, 12:26pm UTC](https://discourse.slimframework.com/t/help-with-user-password-in-slim-project/6109 "2025-11-21T12:26:58Z")

</div>

Hello, my name is Iván. I’m new in Slim and PHP, I’m triyng to make a Token generator to access a page. \<?php use Psr\\Http\\Message\\ResponseInterface as Response; use Psr\\Http\\Message\\ServerRequestInterface as Request; u…

---

## [Slim4 - output buffering large files & zip streaming](https://discourse.slimframework.com/t/slim4-output-buffering-large-files-zip-streaming/4917)

<div class="topic-metadata">

**Author:** [@russell](https://discourse.slimframework.com/u/russell)\
**Replies:** 13\
**Last updated:** [November 12, 2025, 11:11pm UTC](https://discourse.slimframework.com/t/slim4-output-buffering-large-files-zip-streaming/4917 "2025-11-12T23:11:35Z")

</div>

Hello, I’ve been searching the docs and forums and haven’t been able to figure this one out. It’s probably something simple that I’m missing. TIA for any leads. Upgrading Slim2 to Slim4. I was sending large files by cl…

---

## [Searching for a simple ORM](https://discourse.slimframework.com/t/searching-for-a-simple-orm/6020)

<div class="topic-metadata">

**Author:** [@Alpine418](https://discourse.slimframework.com/u/Alpine418)\
**Replies:** 10\
**Last updated:** [November 11, 2025, 2:47pm UTC](https://discourse.slimframework.com/t/searching-for-a-simple-orm/6020 "2025-11-11T14:47:18Z")

</div>

Hi folks. I’m searching for an easy to use and simple ORM, matching the slimness patterns of Slim to create repositories, mappers and models of my tables from - or maybe generate them from an already existing DB schema …

---

## [Slim Community Discord?](https://discourse.slimframework.com/t/slim-community-discord/6178)

<div class="topic-metadata">

**Author:** [@LLEGAZ](https://discourse.slimframework.com/u/LLEGAZ)\
**Replies:** 2\
**Last updated:** [November 5, 2025, 11:00pm UTC](https://discourse.slimframework.com/t/slim-community-discord/6178 "2025-11-05T23:00:50Z")

</div>

Hola Slim Framework Community, I like this forum very much and I was wondering if maybe you had also set a discord for the Slim Framework Community ? A bit like other PHP framework communities (like Phalcon for instance…

---

## [Kamal Hinduja: What are the differences between Slim v3 vs Slim v4?](https://discourse.slimframework.com/t/kamal-hinduja-what-are-the-differences-between-slim-v3-vs-slim-v4/6177)

<div class="topic-metadata">

**Author:** [@kamal12362](https://discourse.slimframework.com/u/kamal12362)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 5:16pm UTC](https://discourse.slimframework.com/t/kamal-hinduja-what-are-the-differences-between-slim-v3-vs-slim-v4/6177 "2025-11-05T17:16:39Z")

</div>

Hi, I am Kamal Hinduja based Geneva, Switzerland (Swiss). Can anybody explain in detail What are the differences between Slim v3 vs Slim v4? Thanks, Regards Kamal Hinduja Geneva, Switzerland

---

## [Subdomains control for url in slim](https://discourse.slimframework.com/t/subdomains-control-for-url-in-slim/24)

<div class="topic-metadata">

**Author:** [@Darth\_Farzad](https://discourse.slimframework.com/u/Darth_Farzad)\
**Replies:** 3\
**Last updated:** [September 24, 2025, 4:50am UTC](https://discourse.slimframework.com/t/subdomains-control-for-url-in-slim/24 "2025-09-24T04:50:35Z")

</div>

Hi there, I would like to create multiple sudbomain eg: foo.mydomain.com bar.mydomain.com ... these subdomains will be dynamic and I would like to have different controllers based on the subdomain and load from a singl…

---

## [Container, LoggerFactory class not found](https://discourse.slimframework.com/t/container-loggerfactory-class-not-found/6172)

<div class="topic-metadata">

**Author:** [@qpon](https://discourse.slimframework.com/u/qpon)\
**Replies:** 1\
**Last updated:** [September 11, 2025, 6:45pm UTC](https://discourse.slimframework.com/t/container-loggerfactory-class-not-found/6172 "2025-09-11T18:45:32Z")

</div>

Hi All, Message: Class “App\\Factory\\LoggerFactory” not found File: D:\\Applications\\wamp64\\www\\my-indloo\\config\\container.php Line: 82 This drives me crazy for the past day and I have no clue where that issue comes fr…

---

## [Error handler no longer handles errors in Slim 4.15](https://discourse.slimframework.com/t/error-handler-no-longer-handles-errors-in-slim-4-15/6171)

<div class="topic-metadata">

**Author:** [@kAlvaro](https://discourse.slimframework.com/u/kAlvaro)\
**Replies:** 3\
**Last updated:** [September 9, 2025, 6:19pm UTC](https://discourse.slimframework.com/t/error-handler-no-longer-handles-errors-in-slim-4-15/6171 "2025-09-09T18:19:36Z")

</div>

Upgrading from 4.14.0 to 4.15.0 breaks custom error handlers for me. I configured error handler 2 or 3 years ago to have proper status codes and custom HTML pages for common HTTP errors. In 4.15, unknown URLs trigger 500…

---

## [Trailing slash is paths](https://discourse.slimframework.com/t/trailing-slash-is-paths/6170)

<div class="topic-metadata">

**Author:** [@kAlvaro](https://discourse.slimframework.com/u/kAlvaro)\
**Replies:** 3\
**Last updated:** [September 4, 2025, 4:16pm UTC](https://discourse.slimframework.com/t/trailing-slash-is-paths/6170 "2025-09-04T16:16:06Z")

</div>

I found there’s a route in my site that could only be reached if I type the trailing slash: $app-\>group('/foo', function (RouteCollectorProxy $group) { $group-\>get('/', Pages\\Foo::class); // 👈 This one $group-\>a…

---

## [Server Error 500 when trying to implement Error Handler](https://discourse.slimframework.com/t/server-error-500-when-trying-to-implement-error-handler/6169)

<div class="topic-metadata">

**Author:** [@pcoloma](https://discourse.slimframework.com/u/pcoloma)\
**Replies:** 4\
**Last updated:** [September 2, 2025, 2:39pm UTC](https://discourse.slimframework.com/t/server-error-500-when-trying-to-implement-error-handler/6169 "2025-09-02T14:39:13Z")

</div>

Hello, I’m reaching out, some previous experience with Slim 3 moving to 4. I’m trying to implement the code given in the official documentation here: Application - Slim Framework Stangely I have a 500 Error thrown when …

---

## [Render twig from CustomErrorRenderer](https://discourse.slimframework.com/t/render-twig-from-customerrorrenderer/4858)

<div class="topic-metadata">

**Author:** [@igor](https://discourse.slimframework.com/u/igor)\
**Replies:** 3\
**Last updated:** [August 27, 2025, 8:52pm UTC](https://discourse.slimframework.com/t/render-twig-from-customerrorrenderer/4858 "2025-08-27T20:52:05Z")

</div>

How do I replace ‘My awesome format’ in the sample below (from the docs) with the twig-\>render? How can I bring container in? I’m trying to render custom error pages in my app using twig \<?php use Slim\\Interfaces\\ErrorR…

---

## [Slim Documentation Website](https://discourse.slimframework.com/t/slim-documentation-website/6026)

<div class="topic-metadata">

**Author:** [@frostybee](https://discourse.slimframework.com/u/frostybee)\
**Replies:** 3\
**Last updated:** [August 27, 2025, 8:32pm UTC](https://discourse.slimframework.com/t/slim-documentation-website/6026 "2025-08-27T20:32:05Z")

</div>

Would you be open to modernizing the look and feel of the documentation webpages? Docusaurus or Astro Starlight are excellent candidates. I can help with that.

---

## [How to properly handle middleware order in Slim 4?](https://discourse.slimframework.com/t/how-to-properly-handle-middleware-order-in-slim-4/6163)

<div class="topic-metadata">

**Author:** [@sopelos](https://discourse.slimframework.com/u/sopelos)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 10:25am UTC](https://discourse.slimframework.com/t/how-to-properly-handle-middleware-order-in-slim-4/6163 "2025-08-21T10:25:12Z")

</div>

Hello I am building a small API using Slim 4 and ran into some confusion about how middleware is executed.:slightly\_smiling\_face: I understand that Slim processes middleware in a stack but when I combine global middlew…

---

## [My Project, PerSeo 2.0 beta](https://discourse.slimframework.com/t/my-project-perseo-2-0-beta/4833)

<div class="topic-metadata">

**Author:** [@brainstorm](https://discourse.slimframework.com/u/brainstorm)\
**Replies:** 11\
**Last updated:** [August 11, 2025, 11:01am UTC](https://discourse.slimframework.com/t/my-project-perseo-2-0-beta/4833 "2025-08-11T11:01:49Z")

</div>

Hello, Today I will share with you my project, based on Slim Framework 4. The project uses Medoo as ORM and some useful features (locale in URI to use routes with all languages without using group in routes, a middlewa…

---

## [Slim 4 POST Endpoint always throws error 500 but GET works flawlessly](https://discourse.slimframework.com/t/slim-4-post-endpoint-always-throws-error-500-but-get-works-flawlessly/6154)

<div class="topic-metadata">

**Author:** [@posbis](https://discourse.slimframework.com/u/posbis)\
**Replies:** 7\
**Last updated:** [July 18, 2025, 3:28pm UTC](https://discourse.slimframework.com/t/slim-4-post-endpoint-always-throws-error-500-but-get-works-flawlessly/6154 "2025-07-18T15:28:06Z")

</div>

Setup Apache Virtual Host configured for: https://api.mydomain.com SLIM Setup installed in the root of the web (DocumentRoot) as this Virtual Host is for API endpoints only (no shared web content) Setup taken from : I…

---

## [Example of symfony/validator integration in SlimPHP](https://discourse.slimframework.com/t/example-of-symfony-validator-integration-in-slimphp/6139)

<div class="topic-metadata">

**Author:** [@Bezlepkin](https://discourse.slimframework.com/u/Bezlepkin)\
**Replies:** 2\
**Last updated:** [June 5, 2025, 8:37pm UTC](https://discourse.slimframework.com/t/example-of-symfony-validator-integration-in-slimphp/6139 "2025-06-05T20:37:32Z")

</div>

Hi! Does anyone have an example of how to integrate symfony/validator into SlimPHP using DTO classes?

---

## [Looking for Best Practices for Structuring Slim 4 Apps with Middleware and Route Groups?](https://discourse.slimframework.com/t/looking-for-best-practices-for-structuring-slim-4-apps-with-middleware-and-route-groups/6144)

<div class="topic-metadata">

**Author:** [@marcelosalas](https://discourse.slimframework.com/u/marcelosalas)\
**Replies:** 1\
**Last updated:** [June 26, 2025, 5:45am UTC](https://discourse.slimframework.com/t/looking-for-best-practices-for-structuring-slim-4-apps-with-middleware-and-route-groups/6144 "2025-06-26T05:45:31Z")

</div>

Hi all, I am currently working on a mid-sized API using Slim 4 and wanted to get some input on how others are organizing their projects — especially regarding middleware and route groups. Right now, I have global middl…

[Next page](https://discourse.slimframework.com/latest.md?page=1)
