Cookbook
📄️ Trailing / in route patterns
Slim treats a URL pattern with a trailing slash as different to one without.
📄️ Retrieving Current Route
If you ever need to get access to the current route within your application, you will need to instantiate the RouteContext object using the incoming ServerRequestInterface.
📄️ Using Doctrine with Slim
This cookbook entry describes how to integrate the widely used Doctrine ORM into a Slim 4 application from scratch.
📄️ Setting up CORS
Cross-Origin Resource Sharing (CORS) is a security feature implemented
📄️ Uploading files using POST forms
Files that are uploaded using forms in POST requests can be retrieved with the Request method getUploadedFiles().